From 9a0de32059c9bef638982e3da3f7ce9904586def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C5=A0pan=C4=9Bl?= Date: Fri, 1 Dec 2017 12:43:35 +0100 Subject: [PATCH] Removed parameter validate as requested. --- src/math/Matrix4.js | 6 +----- src/math/Quaternion.js | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/math/Matrix4.js b/src/math/Matrix4.js index 5e2fcdadae..92f4612de0 100644 --- a/src/math/Matrix4.js +++ b/src/math/Matrix4.js @@ -150,17 +150,13 @@ Object.assign( Matrix4.prototype, { }(), - makeRotationFromEuler: function ( euler, order ) { + makeRotationFromEuler: function ( euler ) { if ( ! ( euler && euler.isEuler ) ) { 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; diff --git a/src/math/Quaternion.js b/src/math/Quaternion.js index 826748f513..f3487bcd4a 100644 --- a/src/math/Quaternion.js +++ b/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; // http://www.mathworks.com/matlabcentral/fileexchange/ -- GitLab