[Bf-blender-cvs] [11eb238] master: Armature Editmode: blend the bone radius when subdividing
Campbell Barton
noreply at git.blender.org
Mon Dec 9 15:09:56 CET 2013
Commit: 11eb238b821d3eef15f2dc9a3e1518948fe3ff79
Author: Campbell Barton
Date: Tue Dec 10 01:02:20 2013 +1100
http://developer.blender.org/rB11eb238b821d3eef15f2dc9a3e1518948fe3ff79
Armature Editmode: blend the bone radius when subdividing
===================================================================
M source/blender/editors/armature/armature_add.c
===================================================================
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index b91deab..b3eef3d 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -789,7 +789,7 @@ static int armature_subdivide_exec(bContext *C, wmOperator *op)
copy_v3_v3(newbone->tail, ebone->tail);
copy_v3_v3(ebone->tail, newbone->head);
- newbone->rad_head = 0.5f * (ebone->rad_head + ebone->rad_tail);
+ newbone->rad_head = ((ebone->rad_head * cutratio) + (ebone->rad_tail * cutratioI));
ebone->rad_tail = newbone->rad_head;
newbone->flag |= BONE_CONNECTED;
More information about the Bf-blender-cvs
mailing list