mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-01-16 18:28:35 -05: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:
@@ -92,7 +92,7 @@ OBSBasicTransform::~OBSBasicTransform()
|
||||
obs_source_t *source = obs_get_source_by_name(
|
||||
obs_data_get_string(dat, "scene_name"));
|
||||
reinterpret_cast<OBSBasic *>(App()->GetMainWindow())
|
||||
->SetCurrentScene(source);
|
||||
->SetCurrentScene(source, true);
|
||||
obs_source_release(source);
|
||||
obs_data_release(dat);
|
||||
obs_scene_load_transform_states(data.c_str());
|
||||
|
||||
Reference in New Issue
Block a user