mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-16 12:37:15 -04:00
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:
@@ -413,7 +413,7 @@ void SourceTreeItem::ExitEditMode(bool save)
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
@@ -424,7 +424,7 @@ void SourceTreeItem::ExitEditMode(bool save)
|
||||
|
||||
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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user