From 3d3fb3dcce09836e7d064f5bee4520950d26edd6 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 17 Jul 2024 17:42:37 +0200 Subject: [PATCH] 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. --- source/blender/blenkernel/intern/blendfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/blendfile.cc b/source/blender/blenkernel/intern/blendfile.cc index 0b5f9f023b2..0a67c16ad05 100644 --- a/source/blender/blenkernel/intern/blendfile.cc +++ b/source/blender/blenkernel/intern/blendfile.cc @@ -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;