Browse Source

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

Wandalen 10 years ago
parent
commit
cacd2e3126
2 changed files with 2 additions and 2 deletions
  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;
 		}