提交 e3eb4e54 编写于 作者: T Tristan VALCKE

Improve Euler closure performance

上级 7ea7d9db
......@@ -237,12 +237,10 @@ Object.assign( Euler.prototype, {
setFromQuaternion: function () {
var matrix;
var matrix = new Matrix4();
return function setFromQuaternion( q, order, update ) {
if ( matrix === undefined ) matrix = new Matrix4();
matrix.makeRotationFromQuaternion( q );
return this.setFromRotationMatrix( matrix, order, update );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册