Prechádzať zdrojové kódy

renderingGroupId fix for auto-lod

keeping the original renderingGroupId for the LOD level
Raanan Weber 9 rokov pred
rodič
commit
67713a5689
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  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 {