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:
authorCampbell Barton <ideasman42@gmail.com>2013-10-29 03:45:36 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-10-29 03:45:36 +0400
commitc11afb4a813959dd85d138b0b9e0beffa30878e5 (patch)
treedfd235c8d6dc3f7b20ed88863e4e8d4b26c5b37e
parentf0780904bcb992529e523ca17d3d4da3eb42cf0b (diff)
patch [#37231] Bone fill sets bone to connected, even if neither of its points is at the tail point of points it's connecting.
from Henrik Aarnio (hjaarnio)
-rw-r--r--source/blender/editors/armature/armature_edit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/armature/armature_edit.c b/source/blender/editors/armature/armature_edit.c
index 1c6ba1d3562..2cd8e930860 100644
--- a/source/blender/editors/armature/armature_edit.c
+++ b/source/blender/editors/armature/armature_edit.c
@@ -583,8 +583,11 @@ static int armature_fill_bones_exec(bContext *C, wmOperator *op)
else
newbone->parent = ebp2->head_owner;
}
-
- newbone->flag |= BONE_CONNECTED;
+
+ /* don't set for bone connecting two head points of bones */
+ if (ebp->tail_owner || ebp2->tail_owner) {
+ newbone->flag |= BONE_CONNECTED;
+ }
}
}
else {