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 <montagne29@wanadoo.fr>2019-08-22 15:28:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-08-22 15:33:56 +0300
commitdf5237ec5e3e43627a997ba97baeffd991aa3735 (patch)
tree9c5ff7b06feee709c76a5fcc4c6c64601115c591 /source/blender
parent08ab3cbcce1eb9c2de4953a83b50cabc44479d3c (diff)
LibOverride: Fix broken logic in code checking and adding new override ops.
When we wanted to force all overidable IDs to be checked, code would end up checking the whole Main DB, instead of only overrideable ones.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/library_override.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library_override.c b/source/blender/blenkernel/intern/library_override.c
index e435f07e38d..ce368575492 100644
--- a/source/blender/blenkernel/intern/library_override.c
+++ b/source/blender/blenkernel/intern/library_override.c
@@ -628,7 +628,7 @@ void BKE_main_override_library_operations_create(Main *bmain, const bool force_a
ID *id;
FOREACH_MAIN_ID_BEGIN (bmain, id) {
- if (force_auto ||
+ if ((ID_IS_OVERRIDE_LIBRARY(id) && force_auto) ||
(ID_IS_OVERRIDE_LIBRARY_AUTO(id) && (id->tag & LIB_TAG_OVERRIDE_LIBRARY_AUTOREFRESH))) {
BKE_override_library_operations_create(bmain, id, force_auto);
id->tag &= ~LIB_TAG_OVERRIDE_LIBRARY_AUTOREFRESH;