[Bf-blender-cvs] CVS commit: blender/source/blender/src editarmature.c poseobject.c
Ton Roosendaal
ton at blender.org
Sat Aug 13 17:15:45 CEST 2005
ton (Ton Roosendaal) 2005/08/13 17:15:44 CEST
Modified files:
blender/source/blender/src editarmature.c poseobject.c
Log:
Bone naming fix.
- On duplicating bones in editmode, names with a dot in it (bone.L) lost
the .L extension. Now it keeps it
- Recoded the 'flip name' routine from scratch, was a horrid construct!
It works now as follows;
1) First it removes the number extension, if its there (like .001)
2) Then it checks for a separator (space, dot, minus, underscore) on either
the 2nd position (L_calfbone) or last-but-one (calfbone.R). If there's an
l, r, L or R it switches the letter.
3) If no switch done yet, it tries if a name starts or ends with "left" or
"right", case insensitive. It replaces this, disregarding separator.
Examples:
Lefthand -> Righthand
L Hand.005 -> R Hand
hand.r -> hand.l
right-l -> right-r
pelvis LEFT -> pelvis RIGHT
Revision Changes Path
1.73 +22 -11 blender/source/blender/src/editarmature.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/editarmature.c.diff?r1=1.72&r2=1.73&cvsroot=bf-blender>
1.15 +90 -137 blender/source/blender/src/poseobject.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/poseobject.c.diff?r1=1.14&r2=1.15&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list