Pārlūkot izejas kodu

Vector3 toArray(): return array

Alexander Rose 11 gadi atpakaļ
vecāks
revīzija
a590cc7b0c
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      src/math/Vector3.js

+ 2 - 0
src/math/Vector3.js

@@ -805,6 +805,8 @@ THREE.Vector3.prototype = {
 			array[ offset ] = this.x;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 2 ] = this.z;
+			
+			return array;
 
 		} else {