frontend: Use OBSBasic::Get() in all places
This reduces duplicated code when getting the OBSBasic context.
This commit is contained in:
parent
a562b8bf52
commit
4e8b131509
25 changed files with 75 additions and 78 deletions
|
|
@ -88,7 +88,7 @@ OBSBasicTransform::~OBSBasicTransform()
|
|||
auto undo_redo = [](const std::string &data) {
|
||||
OBSDataAutoRelease dat = obs_data_create_from_json(data.c_str());
|
||||
OBSSourceAutoRelease source = obs_get_source_by_uuid(obs_data_get_string(dat, "scene_uuid"));
|
||||
reinterpret_cast<OBSBasic *>(App()->GetMainWindow())->SetCurrentScene(source.Get(), true);
|
||||
OBSBasic::Get()->SetCurrentScene(source.Get(), true);
|
||||
obs_scene_load_transform_states(data.c_str());
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue