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-02-13 17:13:19 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-02-13 18:23:42 +0300
commitc9c013f53bad4c344491768cb89c867f12a8244d (patch)
treefa1a0b8a704869da163c678709295df3599f0b83 /source/blender/blenkernel/BKE_lib_query.h
parenta1397e48b9529fe97c8801a07d0ce3daa3594f95 (diff)
libquery: Add 'owner id' to callback data.
In some cases it's important to always have a proper ID as reference, e.g. whene generating data supposed to represent main data-base...
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_query.h')
-rw-r--r--source/blender/blenkernel/BKE_lib_query.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_lib_query.h b/source/blender/blenkernel/BKE_lib_query.h
index 4d1b924b0d3..d47ba2497d4 100644
--- a/source/blender/blenkernel/BKE_lib_query.h
+++ b/source/blender/blenkernel/BKE_lib_query.h
@@ -85,6 +85,11 @@ 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. */
+ 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. */
struct ID *id_self;
struct ID **id_pointer;
int cb_flag;