Browse Source

InstancedMesh: Remove .type.

Mugen87 5 năm trước cách đây
mục cha
commit
00e137184b
2 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 1
      src/objects/InstancedMesh.d.ts
  2. 0 2
      src/objects/InstancedMesh.js

+ 0 - 1
src/objects/InstancedMesh.d.ts

@@ -16,7 +16,6 @@ export class InstancedMesh extends Mesh {
 	count: number;
 	instanceMatrix: BufferAttribute;
 	isInstancedMesh: true;
-	type: 'InstancedMesh';
 
 	setMatrixAt( index: number, matrix: Matrix4 ): void;
 

+ 0 - 2
src/objects/InstancedMesh.js

@@ -13,8 +13,6 @@ function InstancedMesh( geometry, material, count ) {
 
 	this.count = count;
 
-	this.type = 'InstancedMesh';
-
 }
 
 InstancedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), {