handle adding widgets in indexed axis mode
This commit is contained in:
parent
f53b9825cb
commit
74f60dea78
2 changed files with 9 additions and 6 deletions
|
|
@ -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 ? bounds.min.z : proc.camZBottom - zbOff,
|
||||
zBottom = isIndexed ? proc.camZBottom || bounds.min.z : 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,
|
||||
|
|
@ -110,7 +110,8 @@ CAM.slice = function(settings, widget, onupdate, ondone) {
|
|||
let mark = Date.now();
|
||||
let slicer = new kiri.cam_slicer(widget.getPoints(), {
|
||||
zlist: true,
|
||||
zline: true
|
||||
zline: true,
|
||||
nobucket: isIndexed
|
||||
});
|
||||
|
||||
function updateToolDiams(toolDiam) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue