Procházet zdrojové kódy

Color/Euler: fix 'toArray' broken expected behavior #3

Wandalen před 10 roky
rodič
revize
cacd2e3126
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1 1
      src/math/Color.js
  2. 1 1
      src/math/Euler.js

+ 1 - 1
src/math/Color.js

@@ -372,7 +372,7 @@ THREE.Color.prototype = {
 
 	},
 
-	toArray: function( array, offset ) {
+	toArray: function ( array, offset ) {
 
 		if ( array === undefined ) array = [];
 		if ( offset === undefined ) offset = 0;

+ 1 - 1
src/math/Euler.js

@@ -289,7 +289,7 @@ THREE.Euler.prototype = {
 		array[ offset + 1 ] = this._y;
 		array[ offset + 2 ] = this._z;
 
-		if( withoutOrder === true ) {
+		if( !withoutOrder ) {
 			array[ offset + 3 ] = this._order;
 		}