aWeirdo 6 роки тому
батько
коміт
76d96d7936
1 змінених файлів з 2 додано та 4 видалено
  1. 2 4
      src/Meshes/instancedMesh.ts

+ 2 - 4
src/Meshes/instancedMesh.ts

@@ -32,6 +32,8 @@ export class InstancedMesh extends AbstractMesh {
 
         this._sourceMesh = source;
 
+        this._unIndexed = source._unIndexed;
+
         this.position.copyFrom(source.position);
         this.rotation.copyFrom(source.rotation);
         this.scaling.copyFrom(source.scaling);
@@ -253,10 +255,6 @@ export class InstancedMesh extends AbstractMesh {
         return this._sourceMesh._positions;
     }
 
-    public get _unIndexed(): boolean {
-        return this._sourceMesh._unIndexed;
-    }
-
     /**
      * This method recomputes and sets a new BoundingInfo to the mesh unless it is locked.
      * This means the mesh underlying bounding box and sphere are recomputed.