bump rev 2.8.D5

This commit is contained in:
Stewart Allen 2021-03-25 21:04:28 -04:00
commit c7ab04aeac
4 changed files with 10 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{
"name": "grid-apps",
"version": "2.8.4D",
"version": "2.8.5D",
"description": "grid.space 3d slice & modeling tools",
"author": "Stewart Allen <sa@grid.space>",
"license": "MIT",

View file

@ -6,7 +6,7 @@
if (!self.kiri) {
self.kiri = {
beta: 2804,
beta: 2805,
driver: {}, // driver modules
loader: [] // module loading: array of functions
};

View file

@ -3,7 +3,7 @@
let terms = {
COPYRIGHT: "Copyright (C) Stewart Allen <sa@grid.space> - All Rights Reserved",
LICENSE: "See the license.md file included with the source distribution",
VERSION: "2.8.D4"
VERSION: "2.8.D5"
};
if (typeof(module) === 'object') {

View file

@ -760,10 +760,14 @@
let { id, pos, rot } = rec;
let tab = widget.tabs[id];
let e = new THREE.Euler().setFromQuaternion(rot);
// let dv = (e._z - (Math.PI - e._z));
e._z = Math.PI - e._z;
rec.rot = new THREE.Quaternion().setFromEuler(e);
// let m4 = new THREE.Matrix4().makeRotationFromEuler(new THREE.Euler(0,0,dv));
let { _x, _y, _z, _w } = rec.rot;
let or = new THREE.Quaternion(_x, _y, _z, _w);
let nr = new THREE.Quaternion().setFromEuler(e);
let ra = or.angleTo(nr);
console.log({or, nr, ra});
rec.rot = nr;
// let m4 = new THREE.Matrix4().makeRotationFromEuler(new THREE.Euler(0,0,e._z));
// tab.box.geometry.applyMatrix4(m4);
tab.box.position.x = pos.x = -pos.x;
});