Fix T53300: Bone Extrude via Ctrl + Click is not done from active bone tail
authorJoshua Leung <aligorith@gmail.com>
Sun, 19 Nov 2017 13:55:17 +0000 (02:55 +1300)
committerJoshua Leung <aligorith@gmail.com>
Sun, 19 Nov 2017 13:55:17 +0000 (02:55 +1300)
source/blender/editors/armature/armature_add.c

index e419100bd04c9a927c40f87d92af26314a075d05..3d0981ea6c8353dda840fe3e7aa8d2f365925a6b 100644 (file)
@@ -945,6 +945,7 @@ static int armature_extrude_exec(bContext *C, wmOperator *op)
        }
        /* if only one bone, make this one active */
        if (totbone == 1 && first) arm->act_edbone = first;
+       else arm->act_edbone = newbone;
 
        if (totbone == 0) return OPERATOR_CANCELLED;