mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-15 13:53:19 -05:00
Fix scene switch action blocking unexpectedly
If "wait for transition" was checked and no valid scene was selected the waitForTransitionChange() function will wait for its maximum allowed duration as switcher->currentScene will never be null.
This commit is contained in:
@@ -40,7 +40,7 @@ bool MacroActionSwitchScene::PerformAction()
|
||||
auto scene = _scene.GetScene();
|
||||
switchScene({scene, _transition.GetTransition(),
|
||||
(int)(_duration.seconds * 1000)});
|
||||
if (_blockUntilTransitionDone) {
|
||||
if (_blockUntilTransitionDone && scene) {
|
||||
waitForTransitionChange(scene);
|
||||
return !switcher->abortMacroWait;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user