UI: Fix scene/source in virtual camera config if renamed

This commit is contained in:
tytan652 2022-10-12 08:44:26 +02:00 committed by Jim
parent 501a3e926d
commit 0f560a9136

View file

@ -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);