slowed down scene switching to let the user better interrupt it

commented out for now
snap7
jmoenig 2021-09-08 19:52:33 +02:00
rodzic 941664eef4
commit e7ef0a2ecd
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -38,6 +38,7 @@
* blocks, objects, threads: new hat block for "when this scene starts"
* blocks, threads: changed "switch to scene" to be a stop block
* threads: disabled "when this scene starts" hat blocks to directly switch to another scene
* threads: slowed down scene switching to let the user better interrupt it, commented out for now
### 2021-09-07
* blocks, objects, threads: new change-of-scene event

Wyświetl plik

@ -4741,6 +4741,7 @@ Process.prototype.doSwitchToScene = function (id) {
break;
}
this.stop();
// ide.onNextStep = () => // slow down scene switching, disabled for now
ide.switchToScene(scenes.at(idx));
return;
}
@ -4755,10 +4756,10 @@ Process.prototype.doSwitchToScene = function (id) {
}
this.stop();
// ide.onNextStep = () => // slow down scene switching, disabled for now
ide.switchToScene(scene);
};
// Process color primitives
Process.prototype.setHSVA = function (name, num) {