2
0
Эх сурвалжийг харах

Vector2 toArray(): return array

Alexander Rose 11 жил өмнө
parent
commit
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 {