|
@@ -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 );
|