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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user