Selaa lähdekoodia

Vector3: Fix fromBufferAttribute type definition

Michael 4 vuotta sitten
vanhempi
commit
35220d9ca8
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/math/Vector3.d.ts

+ 2 - 1
src/math/Vector3.d.ts

@@ -6,6 +6,7 @@ import { Camera } from './../cameras/Camera';
 import { Spherical } from './Spherical';
 import { Cylindrical } from './Cylindrical';
 import { BufferAttribute } from './../core/BufferAttribute';
+import { InterleavedBufferAttribute } from './../core/InterleavedBufferAttribute';
 import { Vector } from './Vector2';
 /**
  * 3D vector.
@@ -293,7 +294,7 @@ export class Vector3 implements Vector {
 	toArray( array: ArrayLike<number>, offset?: number ): ArrayLike<number>;
 
 	fromBufferAttribute(
-		attribute: BufferAttribute,
+		attribute: BufferAttribute | InterleavedBufferAttribute,
 		index: number
 	): this;