浏览代码

Vector2 toArray(): return array

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

+ 2 - 0
src/math/Vector2.js

@@ -394,6 +394,8 @@ THREE.Vector2.prototype = {
 
 			array[ offset ] = this.x;
 			array[ offset + 1 ] = this.y;
+			
+			return array;
 
 		} else {