[Bf-blender-cvs] [6723e173a52] blender2.8: Multi-Objects: ARMATURE_OT_click_extrude

Dalai Felinto noreply at git.blender.org
Fri Oct 5 19:01:51 CEST 2018


Commit: 6723e173a52769602846ed485f6f3341077eaa02
Author: Dalai Felinto
Date:   Fri Oct 5 14:01:03 2018 -0300
Branches: blender2.8
https://developer.blender.org/rB6723e173a52769602846ed485f6f3341077eaa02

Multi-Objects: ARMATURE_OT_click_extrude

This operator is actually working as expected, but I added some
comments explained that it was already "ported".

===================================================================

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 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;



More information about the Bf-blender-cvs mailing list