unsticky render pop. update 3js matrix4 inversion

This commit is contained in:
Stewart Allen 2021-03-31 11:29:58 -04:00
commit 2ba3637eed
2 changed files with 2 additions and 2 deletions

View file

@ -2157,7 +2157,7 @@
UC.hoverPop(UI.ltfile, { group: hpops, target: $('file-pop') });
UC.hoverPop(UI.ltview, { group: hpops, target: $('pop-view') });
UC.hoverPop(UI.ltact, { group: hpops, target: $('pop-slice') });
UC.hoverPop(UI.render, { group: hpops, target: $('pop-render'), sticky: true });
UC.hoverPop(UI.render, { group: hpops, target: $('pop-render'), sticky: false });
UC.hoverPop(UI.rotate, { group: hpops, target: $('pop-rotate'), sticky: true });
UC.hoverPop(UI.scale, { group: hpops, target: $('pop-scale'), sticky: true });
UC.hoverPop(UI.nozzle, { group: hpops, target: $('pop-nozzle'), sticky: true });

View file

@ -531,7 +531,7 @@
PRO.unrotate = function() {
this.roto.reverse().forEach(m => {
this.mesh.geometry.applyMatrix4(new THREE.Matrix4().getInverse(m));
this.mesh.geometry.applyMatrix4(m.clone().invert());
});
this.roto = [];
this.center();