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