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>2020-04-22 16:58:55 +0300
committerBastien Montagne <bastien@blender.org>2020-04-22 16:58:55 +0300
commit9000ec301337178595ee3230775bd00b1746c06e (patch)
treeb04a8e7de36e74ccec37d9dcf6afdd1e818972b7 /source/blender/blenkernel/BKE_lib_query.h
parent28f7c80c464b71911f926932f6a789efeea14c1e (diff)
Cleanup: clarify and update some flags descriptions in libquery code.
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_query.h')
-rw-r--r--source/blender/blenkernel/BKE_lib_query.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_lib_query.h b/source/blender/blenkernel/BKE_lib_query.h
index f3e15529f77..3aa27bf557c 100644
--- a/source/blender/blenkernel/BKE_lib_query.h
+++ b/source/blender/blenkernel/BKE_lib_query.h
@@ -71,11 +71,15 @@ enum {
IDWALK_CB_OVERRIDE_LIBRARY_REFERENCE = (1 << 5),
/**
- * Adjusts #ID.us reference-count.
- * \note keep in sync with 'newlibadr_us' use in readfile.c
+ * This ID usage is fully refcounted.
+ * Callback is responsible to deal accordingly with #ID.us if needed.
*/
IDWALK_CB_USER = (1 << 8),
- /** Ensure #ID.us is at least 1 on use. */
+ /**
+ * This ID usage is not refcounted, but at least one user should be generated by it (to avoid
+ * e.g. loosing the used ID on save/reload).
+ * Callback is responsible to deal accordingly with #ID.us if needed.
+ */
IDWALK_CB_USER_ONE = (1 << 9),
};