Browse Source

Vector2 toArray(): return array

Alexander Rose 10 years ago
parent
commit
ebba6ea4a5
1 changed files with 2 additions and 0 deletions
  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 ] = this.x;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 1 ] = this.y;
+			
+			return array;
 
 
 		} else {
 		} else {