Blender Git Loki

Git Commits -> Revision a473e66

Revision a473e66 by Ton Roosendaal (master)
August 13, 2005, 15:15 (GMT)
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

Commit Details:

Full Hash: a473e6620d82660384c150cf3b4af72062e7d5a2
SVN Revision: 5083
Parent Commit: 9537bfa
Lines Changed: +108, -144

2 Modified Paths:

/source/blender/src/editarmature.c (+21, -10) (Diff)
/source/blender/src/poseobject.c (+87, -134) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021