ソースを参照

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;
             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).  
          * Returns the total number of vertices (integer).  
          */
          */