Commit: d9c5a35587d2cc32bd43140e9359bc1da2295c55
Author: Joshua Leung
Date:   Fri May 4 17:30:49 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd9c5a35587d2cc32bd43140e9359bc1da2295c55

Fix: Fire notifiers on pose properties changed

While testing UI_OT_reset_default_button, discovered that using
Reset to Default Values on bone locations didn't work. Turns out
to be missing update on this property. So, this is probably
dependent on the property used.

===================================================================

M       source/blender/makesrna/intern/rna_pose.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_pose.c 
b/source/blender/makesrna/intern/rna_pose.c
index 8acf0f755f8..014ac426b54 100644
--- a/source/blender/makesrna/intern/rna_pose.c
+++ b/source/blender/makesrna/intern/rna_pose.c
@@ -132,6 +132,8 @@ static void rna_Pose_IK_update(Main *UNUSED(bmain), Scene 
*UNUSED(scene), Pointe
        Object *ob = ptr->id.data;
 
        DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
+       WM_main_add_notifier(NC_OBJECT | ND_POSE, ptr->id.data);
+
        BIK_clear_data(ob->pose);
 }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to