mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-27 03:36:00 -05:00
Don't wait for transition to complete if already on target scene
This commit is contained in:
@@ -145,7 +145,8 @@ bool MacroActionSwitchScene::PerformAction()
|
||||
auto transition = _transition.GetTransition();
|
||||
SwitchScene({scene, transition, (int)(_duration.Milliseconds())},
|
||||
obs_frontend_preview_program_mode_active());
|
||||
if (_blockUntilTransitionDone && scene) {
|
||||
if (_blockUntilTransitionDone && scene &&
|
||||
scene != switcher->currentScene) {
|
||||
return WaitForTransition(scene, transition);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user