Explorar o código

Vector3 toArray(): return array

Alexander Rose %!s(int64=11) %!d(string=hai) anos
pai
achega
a590cc7b0c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 ] = this.x;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 1 ] = this.y;
 			array[ offset + 2 ] = this.z;
 			array[ offset + 2 ] = this.z;
+			
+			return array;
 
 
 		} else {
 		} else {
 
 

粤ICP备19079148号