浏览代码

Merge pull request #3894 from RaananW/instancedMesh-renderingGroupId

renderingGroupId on instancedMesh has a no-op setter
David Catuhe 7 年之前
父节点
当前提交
f3d5b6708b
共有 1 个文件被更改,包括 5 次插入0 次删除
  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).  
          */