Fix: BKE: PartialWrite: Wrong define used in masked-in values.

`DUPLICATE_DEPENDENCIES` was wrongly used instead of `ADD_DEPENDENCIES`,
the former should be considered a non-modifiable option for a whole
'add' operation. But the per-ID-usage callback should be able to force a
dependency to be added or cleared.
This commit is contained in:
Bastien Montagne
2024-07-17 17:42:37 +02:00
parent 4000e1f2f2
commit 3d3fb3dcce

View File

@@ -1858,7 +1858,7 @@ ID *PartialWriteContext::id_add(
dependencies_filter_cb](LibraryIDLinkCallbackData *cb_data) -> int {
constexpr PartialWriteContext::IDAddOperations per_id_operations_filter =
PartialWriteContext::IDAddOperations(MAKE_LOCAL | SET_FAKE_USER | CLEAR_DEPENDENCIES |
DUPLICATE_DEPENDENCIES);
ADD_DEPENDENCIES);
ID **id_ptr = cb_data->id_pointer;
const ID *orig_deps_id = *id_ptr;