== Automatic Bone Extension Adder ==

Added three new tools to the WKEY menu for Armatures in EditMode/PoseMode. These add .* extensions to the names of selected bones based on their position in 3d-space on the axis considered by that tool.

The current naming schemes are based upon the extensions I normally apply. Some people may have slightly different preferences though.

There is one for:
* Left-Right names (along x-axis)
* Front-Back names (along y-axis)
* Top-Bottom names (along z-axis)
This commit is contained in:
2008-01-28 00:53:54 +00:00
parent b115bd677b
commit 354e6b9c18
8 changed files with 158 additions and 5 deletions

View File

@@ -2548,7 +2548,7 @@ void special_editmenu(void)
DAG_object_flush_update(G.scene, G.obedit, OB_RECALC_DATA);
}
else if(G.obedit->type==OB_ARMATURE) {
nr= pupmenu("Specials%t|Subdivide %x1|Subdivide Multi%x2|Flip Left-Right Names%x3");
nr= pupmenu("Specials%t|Subdivide %x1|Subdivide Multi%x2|Flip Left-Right Names%x3|%l|AutoName Left-Right%x4|AutoName Front-Back%x5|AutoName Top-Bottom%x6");
if(nr==1)
subdivide_armature(1);
if(nr==2) {
@@ -2558,6 +2558,9 @@ void special_editmenu(void)
}
else if(nr==3)
armature_flip_names();
else if(ELEM3(nr, 4, 5, 6)) {
armature_autoside_names(nr-4);
}
}
else if(G.obedit->type==OB_LATTICE) {
static float weight= 1.0f;