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>2015-03-19 16:41:29 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-03-19 16:42:17 +0300
commit7c65b75d01c6e92458dd2deb937c39641f05792f (patch)
tree43c741ee4a4ee6f717fd3db0cc72324f5df3e198 /source/blender/editors/armature
parent15b37a4a4dc8e3684aa53140e7285eb3deaec52b (diff)
Correct recent armature symmetrize
Duplicating part of a chain could have invalid 'connected' flag.
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/armature_add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c
index 5cc2101650e..c2158f02ae3 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;