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
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-10-05 20:01:03 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-10-05 20:01:16 +0300
commit6723e173a52769602846ed485f6f3341077eaa02 (patch)
tree9063d974f2b0b5d0911f333c9189c78deed28ba2 /source/blender/editors/armature/armature_add.c
parent1d6817d5801f8543bfa43d561614fd64a3afd3f2 (diff)
Multi-Objects: ARMATURE_OT_click_extrude
This operator is actually working as expected, but I added some comments explained that it was already "ported".
Diffstat (limited to 'source/blender/editors/armature/armature_add.c')
-rw-r--r--source/blender/editors/armature/armature_add.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index 896b86fad68..940e657fe14 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -121,6 +121,14 @@ EditBone *ED_armature_ebone_add_primitive(Object *obedit_arm, float length, bool
/* previously addvert_armature */
/* the ctrl-click method */
+
+/** Note this is already ported to multi-objects as it is.
+ * Since only the active bone is extruded even for single objects,
+ * it makes sense to stick to the active object here.
+ *
+ * If we want the support to be expanded we should something like the
+ * offset we do for mesh click extrude.
+ */
static int armature_click_extrude_exec(bContext *C, wmOperator *UNUSED(op))
{
View3D *v3d;