Forráskód Böngészése

Vector2 toArray(): return array

Alexander Rose 11 éve
szülő
commit
ebba6ea4a5
1 módosított fájl, 2 hozzáadás és 0 törlés
  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 {