Browse Source

[TS] Allow array of Materials in InstancedMesh generics declaration - Fixes #19500

Xavier Willemin 5 years ago
parent
commit
a82ee8d850
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/objects/InstancedMesh.d.ts

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

@@ -7,7 +7,7 @@ import { Matrix4 } from './../math/Matrix4';
 
 export class InstancedMesh <
 	TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry,
-	TMaterial extends Material = Material
+	TMaterial extends Material | Material[] = Material | Material[]
 > extends Mesh {
 
 	constructor(