zBottom updates specific to A axis indexing

This commit is contained in:
Stewart Allen 2022-11-05 12:12:51 -04:00
commit 1369edb8f3
4 changed files with 7 additions and 5 deletions

View file

@ -44,7 +44,7 @@ CAM.slice = function(settings, widget, onupdate, ondone) {
zbOff = isIndexed ? 0 : (hasStock ? wztop - track.box.d : 0),
// defined z bottom offset by distance to stock bottom
// keeps the z bottom relative to the part when z align changes
zBottom = isIndexed ? proc.camZBottom || bounds.min.z : proc.camZBottom - zbOff,
zBottom = isIndexed ? proc.camZBottom : proc.camZBottom - zbOff,
// greater of widget bottom and z bottom
zMin = isIndexed ? bounds.min.z : Math.max(bounds.min.z, zBottom),
zMax = bounds.max.z,