Merge branch 'master' into cam-topo-new
This commit is contained in:
commit
52610655d0
7 changed files with 19 additions and 9 deletions
|
|
@ -88,7 +88,7 @@ kiri.load(api => {
|
|||
|
||||
CAM.surface_find = function(widget, faces) {
|
||||
CAM.surface_prep(widget);
|
||||
return widget.tool.findConnectedSurface(faces, 0.1, 0.1);
|
||||
return widget.tool.findConnectedSurface(faces, 0.1, 0.0);
|
||||
};
|
||||
|
||||
kiri.worker.cam_surfaces = function(data, send) {
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ CAM.export = function(print, online) {
|
|||
output = [],
|
||||
spindle = 0,
|
||||
newSpindle = 0,
|
||||
toolChanges = 0,
|
||||
spindleMax = device.spindleMax,
|
||||
origin = settings.origin || { x: 0, y: 0, z: 0 },
|
||||
space = device.gcodeSpace ? ' ' : '',
|
||||
|
|
@ -188,9 +189,10 @@ CAM.export = function(print, online) {
|
|||
pos.t = out.tool;
|
||||
consts.tool = pos.t;
|
||||
consts.tool_name = toolNameByNumber(out.tool);
|
||||
if (!laserOp) {
|
||||
if (!laserOp && (spro.camToolInit || toolChanges > 0)) {
|
||||
filterEmit(cmdToolChange, { ...consts, spindle: newSpindle } );
|
||||
}
|
||||
toolChanges++;
|
||||
}
|
||||
|
||||
// on spindle change (deferred from layer transition so it's post-toolchange)
|
||||
|
|
|
|||
Loading…
Reference in a new issue