UI: Force current scene when using undo/redo

The undo/redo functions are setting the current scene. Everytime
it would do this, it would actually transition to the scene.
This forces the current scene, so it fixes a bug where the
transition would be grayed out when undoing/redoing.
This commit is contained in:
Clayton Groeneveld
2021-04-03 22:38:06 -05:00
committed by Jim
parent c370692773
commit 7dfd36f9e8
8 changed files with 17 additions and 17 deletions

View File

@@ -252,7 +252,7 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
obs_source_t *scene_source =
obs_get_source_by_name(scene_name.c_str());
main->SetCurrentScene(scene_source);
main->SetCurrentScene(scene_source, true);
obs_source_release(scene_source);
main->RefreshSources(main->GetCurrentScene());
@@ -282,7 +282,7 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
obs_source_t *scene_source =
obs_get_source_by_name(scene_name.c_str());
main->SetCurrentScene(scene_source);
main->SetCurrentScene(scene_source, true);
obs_source_release(scene_source);
main->RefreshSources(main->GetCurrentScene());