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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user