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_pose.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_pose.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_pose.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_pose.c b/source/blender/makesrna/intern/rna_pose.c index 8b59962d858..2390fdd72f0 100644 --- a/source/blender/makesrna/intern/rna_pose.c +++ b/source/blender/makesrna/intern/rna_pose.c @@ -644,11 +644,11 @@ static bConstraint *rna_PoseChannel_constraints_copy(ID *id, return new_con; } -bool rna_PoseChannel_constraints_override_apply(Main *UNUSED(bmain), +bool rna_PoseChannel_constraints_override_apply(Main *bmain, PointerRNA *ptr_dst, PointerRNA *ptr_src, PointerRNA *UNUSED(ptr_storage), - PropertyRNA *UNUSED(prop_dst), + PropertyRNA *prop_dst, PropertyRNA *UNUSED(prop_src), PropertyRNA *UNUSED(prop_storage), const int UNUSED(len_dst), @@ -694,6 +694,7 @@ bool rna_PoseChannel_constraints_override_apply(Main *UNUSED(bmain), BKE_constraint_unique_name(con_dst, &pchan_dst->constraints); // printf("%s: We inserted a constraint...\n", __func__); + RNA_property_update_main(bmain, NULL, ptr_dst, prop_dst); return true; } |