UI: Fix scene/source in virtual camera config if renamed
This commit is contained in:
parent
501a3e926d
commit
0f560a9136
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue