fix colors and layer first shadow
This commit is contained in:
parent
b57e0e385c
commit
a4ab9288ac
2 changed files with 4 additions and 4 deletions
|
|
@ -190,7 +190,7 @@ class OpArea extends CamOp {
|
|||
.setLayer("tool shadow", { line: 0x44ff88 }, false)
|
||||
.addPolys(tool_shadow);
|
||||
layers
|
||||
.setLayer(rename ?? "clear", { line: 0x88ff00 }, false)
|
||||
.setLayer(rename ?? "clear", { line: color }, false)
|
||||
.addPolys(outs);
|
||||
// of the last output still cuts, we need an escape
|
||||
if (z === zs.peek()) {
|
||||
|
|
@ -232,7 +232,7 @@ class OpArea extends CamOp {
|
|||
zroc += zinc;
|
||||
progress(proc + (pinc * zroc), 'trace');
|
||||
layers
|
||||
.setLayer(rename ?? "trace", { line: 0x88ff00 }, false)
|
||||
.setLayer(rename ?? "trace", { line: color }, false)
|
||||
.addPolys(outs);
|
||||
}
|
||||
proc += pinc;
|
||||
|
|
@ -314,7 +314,7 @@ class OpArea extends CamOp {
|
|||
if (op.refine) path.refine(op.refine);
|
||||
surface.push(path);
|
||||
newLayer().output()
|
||||
.setLayer(rename ?? "linear", { line: 0x00ff00 }, false)
|
||||
.setLayer(rename ?? "linear", { line: color }, false)
|
||||
.addPolys([ path ]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -579,7 +579,7 @@ export function prepare_one(widget, settings, print, firstPoint, update) {
|
|||
depthData.push(polys);
|
||||
} else {
|
||||
// if not depth first, output the polys in slice order
|
||||
setTravelBoundary(shadow);
|
||||
setTravelBoundary(slice.tool_shadow.clone(true));
|
||||
poly2polyEmit(polys, printPoint, polyEmit, { swapdir: false });
|
||||
newLayer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue