mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-06 04:44:32 -05:00
Don't wait for transition to complete if already on target scene
This commit is contained in:
parent
8a5aac3d31
commit
91d3784f9b
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user