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.
This commit is contained in:
Joshua Leung 2018-05-04 17:30:49 +02:00
parent a73c02a17b
commit d9c5a35587
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}