stub in placeholder for fdm animation

This commit is contained in:
Stewart Allen 2021-03-04 15:17:09 -05:00
commit f30865c60a
4 changed files with 26 additions and 3 deletions

View file

@ -287,7 +287,7 @@
slice: prepareSlices,
print: preparePreview,
prepare: preparePreview,
animate: noop,
animate: prepareAnimation,
export: prepareExport,
cancel: cancelWorker,
clear: KIRI.client.clear,
@ -1221,6 +1221,10 @@
});
}
function prepareAnimation() {
API.event.emit("function.animate", {mode: settings.mode});
}
function prepareExport() {
const argsave = arguments;
if (!complete.preview) {

View file

@ -49,6 +49,7 @@
}
setLastFraction(frac = 1) {
if (this.lastVis)
for (let mesh of this.lastVis.children) {
let geo = mesh.geometry;
let pos = geo.attributes.position;