Explorar o código

Fixed Euler.fromArray bug.

Mr.doob %!s(int64=12) %!d(string=hai) anos
pai
achega
f77750203a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/math/Euler.js

+ 1 - 1
src/math/Euler.js

@@ -334,7 +334,7 @@ THREE.Euler.prototype = {
 		this._x = array[ 0 ];
 		this._y = array[ 1 ];
 		this._z = array[ 2 ];
-		this._order = array[ 3 ];
+		if ( array[ 3 ] !== undefined ) this._order = array[ 3 ];
 
 		this._updateQuaternion();