do not hold on to preview renders

This commit is contained in:
Stewart Allen 2022-10-14 12:54:58 -04:00
commit 25c9d8b717
3 changed files with 3 additions and 7 deletions

View file

@ -768,7 +768,7 @@ FDM.prepare = function(widgets, settings, update) {
// render if not explicitly disabled
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);
}, {
lineWidth: settings.process.sliceLineWidth,
@ -779,8 +779,6 @@ FDM.prepare = function(widgets, settings, update) {
fdm: true
});
}
return print.render;
};
function slicePrintPath(print, slice, startPoint, offset, output, opt = {}) {