clear animation when export initiated

This commit is contained in:
Stewart Allen 2021-03-31 11:08:57 -04:00
commit 9b4017b8c1
3 changed files with 10 additions and 5 deletions

View file

@ -55,6 +55,13 @@
});
});
api.event.on("function.export", (mode) => {
if (isAnimate) {
CAM.animate_clear(api);
isAnimate = false;
}
});
api.event.on("mode.set", (mode) => {
isCamMode = mode === 'CAM';
$('set-tools').style.display = isCamMode ? '' : 'none';