diff --git a/src/math/Euler.js b/src/math/Euler.js index 52abe680c36a8d9ad3da94e15978771d3f14f6b4..32a9ceddce8e70e14e3e568241fb924f0a74e253 100644 --- a/src/math/Euler.js +++ b/src/math/Euler.js @@ -9,7 +9,7 @@ import { _Math } from './Math.js'; * @author bhouston / http://clara.io */ -var _matrix, _quaterion; +var _matrix, _quaternion; function Euler( x, y, z, order ) { @@ -275,11 +275,11 @@ Object.assign( Euler.prototype, { // WARNING: this discards revolution information -bhouston - if ( _quaterion === undefined ) _quaterion = new Quaternion(); + if ( _quaternion === undefined ) _quaternion = new Quaternion(); - _quaterion.setFromEuler( this ); + _quaternion.setFromEuler( this ); - return this.setFromQuaternion( _quaterion, newOrder ); + return this.setFromQuaternion( _quaternion, newOrder ); },