浏览代码

Vector3 toArray(): return array

Alexander Rose 10 年之前
父节点
当前提交
a590cc7b0c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/math/Vector3.js

+ 2 - 0
src/math/Vector3.js

@@ -805,6 +805,8 @@ THREE.Vector3.prototype = {
 			array[ offset ] = this.x;
 			array[ offset ] = this.x;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 2 ] = this.z;
 			array[ offset + 2 ] = this.z;
+			
+			return array;
 
 
 		} else {
 		} else {