diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-29 03:45:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-29 03:45:36 +0400 |
commit | c11afb4a813959dd85d138b0b9e0beffa30878e5 (patch) | |
tree | dfd235c8d6dc3f7b20ed88863e4e8d4b26c5b37e | |
parent | f0780904bcb992529e523ca17d3d4da3eb42cf0b (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.c | 7 |
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 { |