浏览代码

Vector4 toArray(): return array

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

+ 2 - 0
src/math/Vector4.js

@@ -644,6 +644,8 @@ THREE.Vector4.prototype = {
 			array[ offset + 1 ] = this.y;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 2 ] = this.z;
 			array[ offset + 2 ] = this.z;
 			array[ offset + 3 ] = this.w;
 			array[ offset + 3 ] = this.w;
+			
+			return array;
 
 
 		} else {
 		} else {