Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-09 18:02:20 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-09 18:02:20 +0400
commit11eb238b821d3eef15f2dc9a3e1518948fe3ff79 (patch)
tree0151a82a6b098f8600613375299a47c5e22827a8 /source
parentab19545aeb1ed769727f321dcdabe5950cc4d7bb (diff)
Armature Editmode: blend the bone radius when subdividing
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/armature/armature_add.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index b91deab6c8d..b3eef3dd5dd 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;