[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60977] trunk/blender/source/blender/ editors/armature/armature_edit.c: patch [#37231] Bone fill sets bone to connected, even if neither of its points is at the tail point of points it' s connecting.

Campbell Barton ideasman42 at gmail.com
Tue Oct 29 00:45:36 CET 2013


Revision: 60977
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60977
Author:   campbellbarton
Date:     2013-10-28 23:45:36 +0000 (Mon, 28 Oct 2013)
Log Message:
-----------
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)

Modified Paths:
--------------
    trunk/blender/source/blender/editors/armature/armature_edit.c

Modified: trunk/blender/source/blender/editors/armature/armature_edit.c
===================================================================
--- trunk/blender/source/blender/editors/armature/armature_edit.c	2013-10-28 23:35:25 UTC (rev 60976)
+++ trunk/blender/source/blender/editors/armature/armature_edit.c	2013-10-28 23:45:36 UTC (rev 60977)
@@ -583,8 +583,11 @@
 				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 {




More information about the Bf-blender-cvs mailing list