diff options
author | Bastien Montagne <b.mont29@gmail.com> | 2020-02-18 13:21:34 +0300 |
---|---|---|
committer | Bastien Montagne <b.mont29@gmail.com> | 2020-02-18 13:22:32 +0300 |
commit | d4e38d99b20209b3ddf1488f00a8fbc1a7b785e9 (patch) | |
tree | ba00041029ad571ce392968975ce7fd57a5f5394 /source/blender/blenkernel/intern/lib_id.c | |
parent | abfdd1c697b5cd276bdd0c5dfda8fd2b48ff24f0 (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/intern/lib_id.c')
-rw-r--r-- | source/blender/blenkernel/intern/lib_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 1cb5905cc94..051b43a177e 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -2022,7 +2022,7 @@ void BKE_main_id_refcount_recompute(struct Main *bmain, const bool do_linked_onl id, id_refcount_recompute_callback, POINTER_FROM_INT((int)do_linked_only), - IDWALK_READONLY); + IDWALK_READONLY | IDWALK_INCLUDE_UI); } FOREACH_MAIN_ID_END; } @@ -2128,7 +2128,7 @@ void BKE_library_make_local(Main *bmain, TIMEIT_START(make_local); #endif - BKE_main_relations_create(bmain); + BKE_main_relations_create(bmain, 0); #ifdef DEBUG_TIME printf("Pre-compute current ID relations: Done.\n"); |