add cam index operation. not wired into slice/preview yet

This commit is contained in:
Stewart Allen 2022-10-28 17:18:01 -04:00
commit 05cdb29d11
10 changed files with 92 additions and 31 deletions

View file

@ -457,6 +457,10 @@ class Widget {
this.setModified();
}
setIndexed(z) {
this.track.indexed = z;
}
/**
* moves top of widget to given Z
*
@ -476,6 +480,9 @@ class Widget {
mesh.position.z = -this.track.zcut || 0;
this.track.top = mbz;
}
if (this.track.indexed) {
mesh.position.z -= this.track.indexed / 2;
}
let ntz = {
pz: pos.z,
mpz: mesh.position.z