mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-07-28 08:06:20 -04:00
UI: Fix scene/source in virtual camera config if renamed
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user