skip renderning when using engine api
This commit is contained in:
parent
61cf538043
commit
7b43a5736f
3 changed files with 18 additions and 9 deletions
|
|
@ -395,10 +395,14 @@
|
|||
}
|
||||
|
||||
print.output = output;
|
||||
print.render = FDM.prepareRender(output, (progress, layer) => {
|
||||
update(0.5 + progress * 0.5, "render", layer);
|
||||
}, { tools: device.extruders, thin: isThin, flat: isFlat, fdm: true });
|
||||
return print.render;
|
||||
|
||||
// render when not internal (engine api)
|
||||
if (!settings.internal) {
|
||||
print.render = FDM.prepareRender(output, (progress, layer) => {
|
||||
update(0.5 + progress * 0.5, "render", layer);
|
||||
}, { tools: device.extruders, thin: isThin, flat: isFlat, fdm: true });
|
||||
return print.render;
|
||||
}
|
||||
};
|
||||
|
||||
class Counter {
|
||||
|
|
|
|||
Loading…
Reference in a new issue