do not hold on to preview renders
This commit is contained in:
parent
ce856146e9
commit
25c9d8b717
3 changed files with 3 additions and 7 deletions
|
|
@ -42,7 +42,7 @@ CAM.prepare = function(widgets, settings, update) {
|
||||||
});
|
});
|
||||||
|
|
||||||
const output = print.output.filter(level => Array.isArray(level));
|
const output = print.output.filter(level => Array.isArray(level));
|
||||||
print.render = render.path(output, (progress, layer) => {
|
return render.path(output, (progress, layer) => {
|
||||||
update(0.75 + progress * 0.25, "render", layer);
|
update(0.75 + progress * 0.25, "render", layer);
|
||||||
}, {
|
}, {
|
||||||
thin: true,
|
thin: true,
|
||||||
|
|
@ -54,8 +54,6 @@ CAM.prepare = function(widgets, settings, update) {
|
||||||
action: "milling",
|
action: "milling",
|
||||||
maxspeed: settings.process.camFastFeed || 6000
|
maxspeed: settings.process.camFastFeed || 6000
|
||||||
});
|
});
|
||||||
|
|
||||||
return print.render;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function prepEach(widget, settings, print, firstPoint, update) {
|
function prepEach(widget, settings, print, firstPoint, update) {
|
||||||
|
|
|
||||||
|
|
@ -768,7 +768,7 @@ FDM.prepare = function(widgets, settings, update) {
|
||||||
|
|
||||||
// render if not explicitly disabled
|
// render if not explicitly disabled
|
||||||
if (settings.render !== false) {
|
if (settings.render !== false) {
|
||||||
print.render = render.path(output, (progress, layer) => {
|
return render.path(output, (progress, layer) => {
|
||||||
update(0.5 + progress * 0.5, "render", layer);
|
update(0.5 + progress * 0.5, "render", layer);
|
||||||
}, {
|
}, {
|
||||||
lineWidth: settings.process.sliceLineWidth,
|
lineWidth: settings.process.sliceLineWidth,
|
||||||
|
|
@ -779,8 +779,6 @@ FDM.prepare = function(widgets, settings, update) {
|
||||||
fdm: true
|
fdm: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return print.render;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function slicePrintPath(print, slice, startPoint, offset, output, opt = {}) {
|
function slicePrintPath(print, slice, startPoint, offset, output, opt = {}) {
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,7 @@ function prepare(widgets, settings, update) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return print.render = kiri.render.path(output, (progress, layer) => {
|
return kiri.render.path(output, (progress, layer) => {
|
||||||
update(0.5 + progress * 0.5, "render", layer);
|
update(0.5 + progress * 0.5, "render", layer);
|
||||||
}, { thin: true, z: 0, action: "cut", moves: process.knifeOn });
|
}, { thin: true, z: 0, action: "cut", moves: process.knifeOn });
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue