diff options
author | Bastien Montagne <bastien@blender.org> | 2022-04-01 13:21:00 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-04-01 13:35:25 +0300 |
commit | 1264142f78302dcecd229b3dd72544470e553964 (patch) | |
tree | 418b7bbf1f83c17b64eb524a7cef8ea6159de894 /source/blender/makesrna/intern/rna_modifier.c | |
parent | d34c4089f18f4ec6c6f8f79b95146195d065ec1e (diff) |
LibOverride: RNA Apply: let apply function responsible for calling update or not on overridden properties.
While this is the desired behavior in almost cases, there are a few
hairy nightmares that may require not to do so.
NOTE: this change should should not modify any current behavior at all.
Diffstat (limited to 'source/blender/makesrna/intern/rna_modifier.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 922e0204299..4f9a10c9993 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -895,7 +895,7 @@ static void rna_HookModifier_object_set(PointerRNA *ptr, BKE_object_modifier_hook_reset(owner, hmd); } -static bool rna_HookModifier_object_override_apply(Main *UNUSED(bmain), +static bool rna_HookModifier_object_override_apply(Main *bmain, PointerRNA *ptr_dst, PointerRNA *ptr_src, PointerRNA *ptr_storage, @@ -933,6 +933,7 @@ static bool rna_HookModifier_object_override_apply(Main *UNUSED(bmain), /* The only case where we do want default behavior (with matrix reset). */ BKE_object_modifier_hook_reset(owner, hmd); } + RNA_property_update_main(bmain, NULL, ptr_dst, prop_dst); return true; } |