瀏覽代碼

Update instancedMesh.ts

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._sourceMesh = source;
 
 
+        this._unIndexed = source._unIndexed;
+
         this.position.copyFrom(source.position);
         this.position.copyFrom(source.position);
         this.rotation.copyFrom(source.rotation);
         this.rotation.copyFrom(source.rotation);
         this.scaling.copyFrom(source.scaling);
         this.scaling.copyFrom(source.scaling);
@@ -253,10 +255,6 @@ export class InstancedMesh extends AbstractMesh {
         return this._sourceMesh._positions;
         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 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.
      * This means the mesh underlying bounding box and sphere are recomputed.