[Bf-blender-cvs] [7c65b75] master: Correct recent armature symmetrize
Campbell Barton
noreply at git.blender.org
Thu Mar 19 14:42:39 CET 2015
Commit: 7c65b75d01c6e92458dd2deb937c39641f05792f
Author: Campbell Barton
Date: Fri Mar 20 00:41:29 2015 +1100
Branches: master
https://developer.blender.org/rB7c65b75d01c6e92458dd2deb937c39641f05792f
Correct recent armature symmetrize
Duplicating part of a chain could have invalid 'connected' flag.
===================================================================
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 5cc2101..c2158f0 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -639,6 +639,7 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op)
* Set the duplicate->parent to NULL
*/
ebone->parent = NULL;
+ ebone->flag &= ~BONE_CONNECTED;
}
else {
/* the parent may have been duplicated, if not lookup the mirror parent */
@@ -652,6 +653,7 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op)
* So just use the same parent for both.
*/
ebone_parent = ebone_iter->parent;
+ ebone->flag &= ~BONE_CONNECTED;
}
ebone->parent = ebone_parent;
More information about the Bf-blender-cvs
mailing list