update CLI to work in CAM mode and add working samples
This commit is contained in:
parent
2d80c58995
commit
d6757d1758
9 changed files with 346 additions and 124 deletions
|
|
@ -42,6 +42,8 @@ CAM.prepare = async function(widgets, settings, update) {
|
|||
});
|
||||
|
||||
const output = print.output.filter(level => Array.isArray(level));
|
||||
|
||||
if (render) // allows it to run from CLI
|
||||
return render.path(output, (progress, layer) => {
|
||||
update(0.75 + progress * 0.25, "render", layer);
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Reference in a new issue