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-18 13:21:34 +0300
committerBastien Montagne <b.mont29@gmail.com>2020-02-18 13:22:32 +0300
commitd4e38d99b20209b3ddf1488f00a8fbc1a7b785e9 (patch)
treeba00041029ad571ce392968975ce7fd57a5f5394 /source/blender/blenkernel/BKE_main.h
parentabfdd1c697b5cd276bdd0c5dfda8fd2b48ff24f0 (diff)
libquery: add optional handling of 'UI' ID pointers.
Handling those through different ways /might/ be needed sometimes, but in most case this is just a nest of issues, since you can easily forget to take them into account. Note that this should be a 'non-functional' change, as this new behavior is not used anywhere yet.
Diffstat (limited to 'source/blender/blenkernel/BKE_main.h')
-rw-r--r--source/blender/blenkernel/BKE_main.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_main.h b/source/blender/blenkernel/BKE_main.h
index 66cbe6d838f..8b46939c6d1 100644
--- a/source/blender/blenkernel/BKE_main.h
+++ b/source/blender/blenkernel/BKE_main.h
@@ -73,10 +73,17 @@ typedef struct MainIDRelations {
struct GHash *id_user_to_used;
struct GHash *id_used_to_user;
+ short flag;
+
/* Private... */
struct BLI_mempool *entry_pool;
} MainIDRelations;
+enum {
+ /* Those bmain relations include pointers/usages from editors. */
+ MAINIDRELATIONS_INCLUDE_UI = 1 << 0,
+};
+
typedef struct Main {
struct Main *next, *prev;
char name[1024]; /* 1024 = FILE_MAX */
@@ -149,7 +156,7 @@ void BKE_main_free(struct Main *mainvar);
void BKE_main_lock(struct Main *bmain);
void BKE_main_unlock(struct Main *bmain);
-void BKE_main_relations_create(struct Main *bmain);
+void BKE_main_relations_create(struct Main *bmain, const short flag);
void BKE_main_relations_free(struct Main *bmain);
struct GSet *BKE_main_gset_create(struct Main *bmain, struct GSet *gset);