Explorar el Código

Update instancedMesh.ts

aWeirdo hace 6 años
padre
commit
76d96d7936
Se han modificado 1 ficheros con 2 adiciones y 4 borrados
  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.