提交 9a0de320 编写于 作者: O Ondřej Španěl

Removed parameter validate as requested.

上级 5a6acb6b
......@@ -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;
......
......@@ -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/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册