Преглед изворни кода

Fixed Euler.fromArray bug.

Mr.doob пре 12 година
родитељ
комит
f77750203a
1 измењених фајлова са 1 додато и 1 уклоњено
  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();