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 <b.mont29@gmail.com>2020-03-11 14:37:25 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-03-11 14:53:10 +0300
commit8820ab41bda7d639ec7eca3c7b473d903f01238e (patch)
tree453759c78a75d80408b37282337c0da091f36ac4 /source/blender/blenkernel/BKE_lib_query.h
parent8b2072868d5057bf9a3da52b8d27d13b11c8ae18 (diff)
Cleanup in ID remapping code re owner_id vs. self_id.
The former is always a real, in-Main data-block, while the later, when different, should be one of those embedded 'private' IDs (like root node ree or master collection).
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_query.h')
-rw-r--r--source/blender/blenkernel/BKE_lib_query.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/blenkernel/BKE_lib_query.h b/source/blender/blenkernel/BKE_lib_query.h
index b12803b1603..33633e59e4d 100644
--- a/source/blender/blenkernel/BKE_lib_query.h
+++ b/source/blender/blenkernel/BKE_lib_query.h
@@ -89,11 +89,15 @@ enum {
typedef struct LibraryIDLinkCallbackData {
void *user_data;
- /* 'Real' ID, the one that might be in bmain, only differs from self_id when the later is a
- * private one. */
+ /**
+ * 'Real' ID, the one that might be in bmain, only differs from self_id when the later is an
+ * embeded one.
+ */
struct ID *id_owner;
- /* ID from which the current ID pointer is being processed. It may be a 'private' ID like master
- * collection or root node tree. */
+ /**
+ * ID from which the current ID pointer is being processed. It may be an embeded ID like master
+ * collection or root node tree.
+ */
struct ID *id_self;
struct ID **id_pointer;
int cb_flag;