浏览代码

Merge pull request #888 from RaananW/rendering-group-fix

renderingGroupId fix for auto-lod
Raanan Weber 9 年之前
父节点
当前提交
2657754d39
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Mesh/babylon.meshSimplification.ts

+ 1 - 0
src/Mesh/babylon.meshSimplification.ts

@@ -574,6 +574,7 @@
             this._reconstructedMesh.material = this._mesh.material;
             this._reconstructedMesh.parent = this._mesh.parent;
             this._reconstructedMesh.isVisible = false;
+            this._reconstructedMesh.renderingGroupId = this._mesh.renderingGroupId;
         }
 
         private isFlipped(vertex1: DecimationVertex, vertex2: DecimationVertex, point: Vector3, deletedArray: Array<boolean>, borderFactor: number, delTr: Array<DecimationTriangle>): boolean {