Abort the previous bake when attempting the next autobake

This commit is contained in:
zb3 2024-04-07 00:23:17 +02:00
parent 33a473c09b
commit a81b2064d4
3 changed files with 54 additions and 1 deletions

View file

@ -160,7 +160,12 @@ class App {
// has completed.
if (this.autoBakePause) return false;
if (this.autoBake_ && !this.baking) {
if (this.baking) {
this.manager.worker.cancelBakeForAutoBake();
this.baking = false;
}
if (this.autoBake_) {
log.debug("Auto-baking");
this.manager.worker.bakeInputs({
nums: [this.manager.tabs.getActiveTab("input")],