浏览代码

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

Vector3: Fix fromBufferAttribute type definition
Mr.doob 4 年之前
父节点
当前提交
1e9cad818e
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 { Spherical } from './Spherical';
 import { Cylindrical } from './Cylindrical';
 import { Cylindrical } from './Cylindrical';
 import { BufferAttribute } from './../core/BufferAttribute';
 import { BufferAttribute } from './../core/BufferAttribute';
+import { InterleavedBufferAttribute } from './../core/InterleavedBufferAttribute';
 import { Vector } from './Vector2';
 import { Vector } from './Vector2';
 /**
 /**
  * 3D vector.
  * 3D vector.
@@ -293,7 +294,7 @@ export class Vector3 implements Vector {
 	toArray( array: ArrayLike<number>, offset?: number ): ArrayLike<number>;
 	toArray( array: ArrayLike<number>, offset?: number ): ArrayLike<number>;
 
 
 	fromBufferAttribute(
 	fromBufferAttribute(
-		attribute: BufferAttribute,
+		attribute: BufferAttribute | InterleavedBufferAttribute,
 		index: number
 		index: number
 	): this;
 	): this;