Sfoglia il codice sorgente

Merge pull request #3894 from RaananW/instancedMesh-renderingGroupId

renderingGroupId on instancedMesh has a no-op setter
David Catuhe 7 anni fa
parent
commit
f3d5b6708b
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/Mesh/babylon.instancedMesh.ts

+ 5 - 0
src/Mesh/babylon.instancedMesh.ts

@@ -58,6 +58,11 @@
             return this._sourceMesh.renderingGroupId;
         }
 
+        public set renderingGroupId(value: number) {
+            //no-op with warning
+            Tools.Warn("Note - setting renderingGroupId of an instanced mesh has no effect on the scene");
+        }
+
         /**
          * Returns the total number of vertices (integer).  
          */