prevent dogbones on tabs. fix settings restore order to preserve annotations
This commit is contained in:
parent
62aac14c63
commit
99b9dc476e
3 changed files with 3 additions and 2 deletions
|
|
@ -397,7 +397,7 @@
|
|||
setTool(tool, rate, plunge);
|
||||
let traceTool = new CAM.Tool(settings, tool);
|
||||
let traceToolDiam = traceTool.fluteDiameter();
|
||||
printPoint = poly2polyEmit(slice.camLines, printPoint, polyEmit);
|
||||
printPoint = poly2polyEmit(slice.camLines, printPoint, polyEmit, { swapdir: false });
|
||||
newLayer();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@
|
|||
if (Array.isArray(poly)) {
|
||||
return poly.forEach(p => CAM.addDogbones(p, dist));
|
||||
}
|
||||
if (poly.open) return;
|
||||
let isCW = poly.isClockwise();
|
||||
if (reverse || poly.parent) isCW = !isCW;
|
||||
let oldpts = poly.points.slice();
|
||||
|
|
|
|||
|
|
@ -2714,7 +2714,6 @@
|
|||
clearWorkspace();
|
||||
settings = CONF.normalize(data.settings);
|
||||
SDB.setItem('ws-settings', JSON.stringify(settings));
|
||||
restoreSettings();
|
||||
if (LOCAL) console.log('settings',Object.clone(settings));
|
||||
if (isWork) {
|
||||
API.platform.clear();
|
||||
|
|
@ -2725,6 +2724,7 @@
|
|||
SPACE.view.load(data.view);
|
||||
}
|
||||
}
|
||||
restoreSettings();
|
||||
restoreWorkspace(() => {
|
||||
UI.sync();
|
||||
}, true);
|
||||
|
|
|
|||
Loading…
Reference in a new issue