Ver código fonte

Merge pull request #20235 from Mike-Dax/patch-3

Vector3: Fix fromBufferAttribute type definition
Mr.doob 4 anos atrás
pai
commit
1e9cad818e
1 arquivos alterados com 2 adições e 1 exclusões
  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;