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>2021-05-26 12:52:24 +0300
committerBastien Montagne <bastien@blender.org>2021-05-26 18:05:01 +0300
commit6cbe5dd1c3d9cba182c4a8785e921d61f9e8c207 (patch)
treea9a7056b1824764f4c1e1f5a108c31be4e3b8cad /source/blender/blenkernel/BKE_lib_remap.h
parentee849ca0f8f60c142dce7ecea1be74d382247c12 (diff)
ID management: remapping: add flag to enforce refcounting handling.
While indeally we should only skip refcounting when relevant tag is set, doing this in remapping code is too risky for now. Related to previous commit and T88555.
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_remap.h')
-rw-r--r--source/blender/blenkernel/BKE_lib_remap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_lib_remap.h b/source/blender/blenkernel/BKE_lib_remap.h
index 705d2b030e5..e806dedc14c 100644
--- a/source/blender/blenkernel/BKE_lib_remap.h
+++ b/source/blender/blenkernel/BKE_lib_remap.h
@@ -85,6 +85,10 @@ enum {
* freed ones).
*/
ID_REMAP_FORCE_INTERNAL_RUNTIME_POINTERS = 1 << 7,
+ /** Force handling user count even for IDs that are outside of Main (used in some cases when
+ * dealing with IDs temporarily out of Main, but which will be put in it ultimately).
+ */
+ ID_REMAP_FORCE_USER_REFCOUNT = 1 << 8,
};
/* Note: Requiring new_id to be non-null, this *may* not be the case ultimately,