Fix #146077: Pointers to Duplicated Scenes in Duplicated IDs are not updated.

The new duplicate copy of the scene itself was not properly set-up to
allow the usages of its source to be remapped to the new copy.

Pull Request: https://projects.blender.org/blender/blender/pulls/146177
This commit is contained in:
Bastien Montagne
2025-09-15 10:30:38 +02:00
parent 78e58bd595
commit 678be7a703

View File

@@ -1840,6 +1840,10 @@ Scene *BKE_scene_duplicate(Main *bmain, Scene *sce, eSceneCopyMethod type)
if (!is_subprocess) {
BKE_main_id_newptr_and_tag_clear(bmain);
}
/* Usages of the duplicated scene also need to be remapped in new duplicated IDs. */
ID_NEW_SET(sce, sce_copy);
if (is_root_id) {
/* In case root duplicated ID is linked, assume we want to get a local copy of it and
* duplicate all expected linked data. */