fix layout spacing in cam mode with new process keys
This commit is contained in:
parent
c53383968c
commit
36a135fe2a
1 changed files with 2 additions and 2 deletions
|
|
@ -1248,8 +1248,8 @@
|
|||
// in CNC mode with >1 widget, force layout with spacing @ 1.5x largest tool diameter
|
||||
if (MODE === MODES.CAM && WIDGETS.length > 1) {
|
||||
let spacing = space || 1, CAM = KIRI.driver.CAM;
|
||||
if (proc.roughingOn) spacing = Math.max(spacing, CAM.getToolDiameter(settings, proc.roughingTool));
|
||||
if (proc.finishingOn || proc.finishingXOn || proc.finishingYOn) spacing = Math.max(spacing, CAM.getToolDiameter(settings, proc.finishingTool));
|
||||
if (proc.camRoughOn) spacing = Math.max(spacing, CAM.getToolDiameter(settings, proc.camRoughTool));
|
||||
if (proc.camOutlineOn) spacing = Math.max(spacing, CAM.getToolDiameter(settings, proc.camOutlineTool));
|
||||
gap = spacing * 1.5;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue