prevent new animation when running animation
This commit is contained in:
parent
8e7a51a01d
commit
d3aeb39fa9
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@
|
||||||
|
|
||||||
// wire up animate button in ui
|
// wire up animate button in ui
|
||||||
api.event.on("function.animate", (mode) => {
|
api.event.on("function.animate", (mode) => {
|
||||||
|
if (isAnimate) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (isCamMode && !camStock) {
|
if (isCamMode && !camStock) {
|
||||||
return api.show.alert("animation requires stock to be enabled");
|
return api.show.alert("animation requires stock to be enabled");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue