diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-04 18:30:49 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-04 18:30:59 +0300 |
commit | d9c5a35587d2cc32bd43140e9359bc1da2295c55 (patch) | |
tree | 02b8ef9ecc72fad680e75992764f6d9dc386e2fb /source | |
parent | a73c02a17b58427f998fa9d260d1fbcbccbe6e25 (diff) |
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.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/makesrna/intern/rna_pose.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |