add cam index operation. not wired into slice/preview yet
This commit is contained in:
parent
8a4c6ef560
commit
05cdb29d11
10 changed files with 92 additions and 31 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue