소스 검색

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 {