|
@@ -1796,7 +1796,11 @@
|
|
|
|
|
|
if ( 'PreRotation' in node.properties ) {
|
|
|
|
|
|
- var preRotations = new THREE.Euler().fromArray( node.properties.PreRotation.value.map( THREE.Math.degToRad ), 'ZYX' );
|
|
|
+ var array = node.properties.PreRotation.value.map( THREE.Math.degToRad );
|
|
|
+ array[ 3 ] = 'ZYX';
|
|
|
+
|
|
|
+ var preRotations = new THREE.Euler().fromArray( array );
|
|
|
+
|
|
|
preRotations = new THREE.Quaternion().setFromEuler( preRotations );
|
|
|
var currentRotation = new THREE.Quaternion().setFromEuler( model.rotation );
|
|
|
preRotations.multiply( currentRotation );
|