patch [#37231] Bone fill sets bone to connected, even if neither of its points is...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 28 Oct 2013 23:45:36 +0000 (23:45 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 28 Oct 2013 23:45:36 +0000 (23:45 +0000)
from Henrik Aarnio (hjaarnio)

source/blender/editors/armature/armature_edit.c

index 1c6ba1d35627d09da8a7c1513af3b09136c32b16..2cd8e9308603563c45fcf9daf9b4d1ffcd816297 100644 (file)
@@ -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 {