Browse Source

Removed parameter validate as requested.

Ondřej Španěl 7 years ago
parent
commit
9a0de32059
2 changed files with 1 additions and 10 deletions
  1. 1 5
      src/math/Matrix4.js
  2. 0 5
      src/math/Quaternion.js

+ 1 - 5
src/math/Matrix4.js

@@ -150,17 +150,13 @@ Object.assign( Matrix4.prototype, {
 
 
 	}(),
 	}(),
 
 
-	makeRotationFromEuler: function ( euler, order ) {
+	makeRotationFromEuler: function ( euler ) {
 
 
 		if ( ! ( euler && euler.isEuler ) ) {
 		if ( ! ( euler && euler.isEuler ) ) {
 
 
 			console.error( 'THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
 			console.error( 'THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.' );
 
 
 		}
 		}
-		if ( order ) {
-
-			throw new Error( 'THREE.Matrix4: .makeRotationFromEuler() no longer accepts order as the second parameter.' );
-		}
 
 
 		var te = this.elements;
 		var te = this.elements;
 
 

+ 0 - 5
src/math/Quaternion.js

@@ -202,11 +202,6 @@ Object.assign( Quaternion.prototype, {
 
 
 		}
 		}
 
 
-		if ( typeof update === 'string' || update instanceof String ) {
-
-			throw new Error( 'THREE.Quaternion: .setFromEuler() no longer accepts order as the second parameter.' );
-		}
-
 		var x = euler._x, y = euler._y, z = euler._z, order = euler.order;
 		var x = euler._x, y = euler._y, z = euler._z, order = euler.order;
 
 
 		// http://www.mathworks.com/matlabcentral/fileexchange/
 		// http://www.mathworks.com/matlabcentral/fileexchange/