From ce51066e47175a38fd205987b6e6acc1a805dbe0 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 22 Mar 2018 07:42:17 +0100 Subject: Fix bone dissolve using wrong envelope radius Also correctly copy bone tip selection when dissolving. --- source/blender/editors/armature/armature_edit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/armature/armature_edit.c b/source/blender/editors/armature/armature_edit.c index a2fbfe645f7..17d60d2b4a0 100644 --- a/source/blender/editors/armature/armature_edit.c +++ b/source/blender/editors/armature/armature_edit.c @@ -1458,6 +1458,7 @@ static int armature_dissolve_selected_exec(bContext *C, wmOperator *UNUSED(op)) if (ebone->flag & BONE_DONE) { copy_v3_v3(ebone->parent->tail, ebone->tail); ebone->parent->rad_tail = ebone->rad_tail; + SET_FLAG_FROM_TEST(ebone->parent->flag, ebone->flag & BONE_TIPSEL, BONE_TIPSEL); ED_armature_edit_bone_remove(arm, ebone); changed = true; @@ -1471,7 +1472,7 @@ static int armature_dissolve_selected_exec(bContext *C, wmOperator *UNUSED(op)) (ebone->flag & BONE_CONNECTED) == 0) { ebone->flag |= BONE_CONNECTED; - ebone->rad_head = ebone->parent->rad_head; + ebone->rad_head = ebone->parent->rad_tail; } } -- cgit v1.2.3