ソースを参照

Merge pull request #9659 from Popov72/remove-code-syncinstance

Remove unnecessary code after latest changes to instance management
sebavan 4 年 前
コミット
c32deb1310
1 ファイル変更0 行追加4 行削除
  1. 0 4
      src/Meshes/mesh.ts

+ 0 - 4
src/Meshes/mesh.ts

@@ -3002,10 +3002,6 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData {
      * @returns the current mesh
      */
     public synchronizeInstances(): Mesh {
-        if (this._geometry && this._geometry.meshes.length !== 1 && this.instances.length) {
-            this.makeGeometryUnique();
-        }
-
         for (var instanceIndex = 0; instanceIndex < this.instances.length; instanceIndex++) {
             var instance = this.instances[instanceIndex];
             instance._syncSubMeshes();