|
@@ -255,10 +255,12 @@ Object.assign( Euler.prototype, {
|
|
|
|
|
|
setFromQuaternion: function () {
|
|
|
|
|
|
- var matrix = new Matrix4();
|
|
|
+ var matrix;
|
|
|
|
|
|
return function setFromQuaternion( q, order, update ) {
|
|
|
|
|
|
+ if ( matrix === undefined ) matrix = new Matrix4();
|
|
|
+
|
|
|
matrix.makeRotationFromQuaternion( q );
|
|
|
|
|
|
return this.setFromRotationMatrix( matrix, order, update );
|