mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-19 17:49:14 +00:00
UI: Fix scene/source in virtual camera config if renamed
This commit is contained in:
parent
501a3e926d
commit
0f560a9136
|
@ -3086,6 +3086,13 @@ void OBSBasic::RenameSources(OBSSource source, QString newName,
|
|||
projectors[i]->RenameProjector(prevName, newName);
|
||||
}
|
||||
|
||||
if (vcamConfig.type == VCamOutputType::SourceOutput &&
|
||||
prevName == QString::fromStdString(vcamConfig.source))
|
||||
vcamConfig.source = newName.toStdString();
|
||||
if (vcamConfig.type == VCamOutputType::SceneOutput &&
|
||||
prevName == QString::fromStdString(vcamConfig.scene))
|
||||
vcamConfig.scene = newName.toStdString();
|
||||
|
||||
SaveProject();
|
||||
|
||||
obs_scene_t *scene = obs_scene_from_source(source);
|
||||
|
|
Loading…
Reference in a new issue