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:
WarmUpTill
2022-01-31 22:21:36 +01:00
committed by WarmUpTill
parent d79e10ec97
commit cb681643c8

View File

@@ -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;
}