Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-05-04 18:30:26 +0300
committerBastien Montagne <bastien@blender.org>2022-05-04 18:30:26 +0300
commit7d41e1ed40ad74368a1019db554e47c6ab1baedb (patch)
tree390c087f39ea7ecbbf8807aa08f95442e5eaae50 /source/blender
parent8ff5836766a9ebebe22966f50f6e61bcf20e7602 (diff)
parent60772baebf6cf4bb54bc7d04a758c78d639062cf (diff)
Merge branch 'blender-v3.2-release'
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/BKE_lib_remap.h4
-rw-r--r--source/blender/blenkernel/intern/scene.cc2
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/blenkernel/BKE_lib_remap.h b/source/blender/blenkernel/BKE_lib_remap.h
index 57afbefd508..f62225179bd 100644
--- a/source/blender/blenkernel/BKE_lib_remap.h
+++ b/source/blender/blenkernel/BKE_lib_remap.h
@@ -57,7 +57,9 @@ enum {
ID_REMAP_FORCE_NEVER_NULL_USAGE = 1 << 3,
/** Do not remap library override pointers. */
ID_REMAP_SKIP_OVERRIDE_LIBRARY = 1 << 5,
- /** Don't touch the user count (use for low level actions such as swapping pointers). */
+ /** Don't touch the special user counts (use when the 'old' remapped ID remains in use):
+ * - Do not transfer 'fake user' status from old to new ID.
+ * - Do not clear 'extra user' from old ID. */
ID_REMAP_SKIP_USER_CLEAR = 1 << 6,
/**
* Force internal ID runtime pointers (like `ID.newid`, `ID.orig_id` etc.) to also be processed.
diff --git a/source/blender/blenkernel/intern/scene.cc b/source/blender/blenkernel/intern/scene.cc
index eed187b1b0a..e203d32a658 100644
--- a/source/blender/blenkernel/intern/scene.cc
+++ b/source/blender/blenkernel/intern/scene.cc
@@ -274,7 +274,7 @@ static void scene_copy_data(Main *bmain, ID *id_dst, const ID *id_src, const int
scene_dst->nodetree,
(void *)(&scene_src->id),
&scene_dst->id,
- ID_REMAP_SKIP_NEVER_NULL_USAGE);
+ ID_REMAP_SKIP_NEVER_NULL_USAGE | ID_REMAP_SKIP_USER_CLEAR);
}
if (scene_src->rigidbody_world) {