mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-05 07:06:13 -05:00
UI: Save virtual camera outside of the modules object
Save the configuration outside of the modules object meant for plugins in the scene collection.
This commit is contained in:
@@ -729,6 +729,8 @@ void OBSBasic::Save(const char *file)
|
||||
obs_data_set_double(saveData, "scaling_off_y",
|
||||
ui->preview->GetScrollY());
|
||||
|
||||
OBSBasicVCamConfig::SaveData(saveData, true);
|
||||
|
||||
if (api) {
|
||||
OBSDataAutoRelease moduleObj = obs_data_create();
|
||||
api->on_save(moduleObj);
|
||||
@@ -1141,6 +1143,8 @@ retryScene:
|
||||
ui->preview->SetFixedScaling(fixedScaling);
|
||||
emit ui->preview->DisplayResized();
|
||||
|
||||
OBSBasicVCamConfig::SaveData(data, false);
|
||||
|
||||
/* ---------------------- */
|
||||
|
||||
if (api)
|
||||
|
||||
Reference in New Issue
Block a user