fix [#36906] AutoName operator do not update the display of the bone's name in the...
authorCampbell Barton <ideasman42@gmail.com>
Tue, 1 Oct 2013 12:56:25 +0000 (12:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 1 Oct 2013 12:56:25 +0000 (12:56 +0000)
source/blender/editors/armature/armature_naming.c

index 1ee2dc80a975820e32f72e7ef2d39af9c6658ee8..981284049778d128536d209f933e27b495207d57 100644 (file)
@@ -294,9 +294,13 @@ static int armature_flip_names_exec(bContext *C, wmOperator *UNUSED(op))
        /* since we renamed stuff... */
        DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
 
-       /* note, notifier might evolve */
-       WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
-       
+       /* copied from #rna_Bone_update_renamed */
+       /* redraw view */
+       WM_event_add_notifier(C, NC_GEOM | ND_DATA, ob->data);
+
+       /* update animation channels */
+       WM_event_add_notifier(C, NC_ANIMATION | ND_ANIMCHAN, ob->data);
+
        return OPERATOR_FINISHED;
 }