another patch for #334 related to tabs used in flip operations
This commit is contained in:
parent
cd37f3adb1
commit
51e6cf13ef
1 changed files with 2 additions and 2 deletions
|
|
@ -789,8 +789,8 @@ CAM.init = function(kiri, api) {
|
||||||
yr = Math.PI / 2;
|
yr = Math.PI / 2;
|
||||||
}
|
}
|
||||||
tab.pos.z = bpo.z = flz;
|
tab.pos.z = bpo.z = flz;
|
||||||
let { rot } = tab;
|
let [ rx, ry, rz, rw ] = tab.rot;
|
||||||
let qat = new THREE.Quaternion(rot._x, rot._y, rot._z, rot._w);
|
let qat = new THREE.Quaternion(rx, ry, rz, rw);
|
||||||
let eul = new THREE.Euler().setFromQuaternion(qat);
|
let eul = new THREE.Euler().setFromQuaternion(qat);
|
||||||
eul._z = -eul._z;
|
eul._z = -eul._z;
|
||||||
tab.rot = new THREE.Quaternion().setFromEuler(eul);
|
tab.rot = new THREE.Quaternion().setFromEuler(eul);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue