[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60485] trunk/blender/source/blender/ editors/armature/armature_naming.c: fix [#36906] AutoName operator do not update the display of the bone' s name in the Bone Properties
Campbell Barton
ideasman42 at gmail.com
Tue Oct 1 14:56:26 CEST 2013
Revision: 60485
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60485
Author: campbellbarton
Date: 2013-10-01 12:56:25 +0000 (Tue, 01 Oct 2013)
Log Message:
-----------
fix [#36906] AutoName operator do not update the display of the bone's name in the Bone Properties
Modified Paths:
--------------
trunk/blender/source/blender/editors/armature/armature_naming.c
Modified: trunk/blender/source/blender/editors/armature/armature_naming.c
===================================================================
--- trunk/blender/source/blender/editors/armature/armature_naming.c 2013-10-01 12:48:41 UTC (rev 60484)
+++ trunk/blender/source/blender/editors/armature/armature_naming.c 2013-10-01 12:56:25 UTC (rev 60485)
@@ -294,9 +294,13 @@
/* 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;
}
More information about the Bf-blender-cvs
mailing list