From 960cdb8f5d6fa5617f5003190cc4926f7b031df6 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 23 Sep 2010 19:31:01 +0000 Subject: Fix other part of #22853: mirrored transform on armature tail/head only did not mirror roll. --- source/blender/editors/armature/editarmature.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/editarmature.c b/source/blender/editors/armature/editarmature.c index 8cac3c42e4d..930f6e684fc 100644 --- a/source/blender/editors/armature/editarmature.c +++ b/source/blender/editors/armature/editarmature.c @@ -5772,6 +5772,7 @@ void transform_armature_mirror_update(Object *obedit) eboflip->tail[1]= ebo->tail[1]; eboflip->tail[2]= ebo->tail[2]; eboflip->rad_tail= ebo->rad_tail; + eboflip->roll= -ebo->roll; /* Also move connected children, in case children's name aren't mirrored properly */ for (children=arm->edbo->first; children; children=children->next) { @@ -5786,6 +5787,7 @@ void transform_armature_mirror_update(Object *obedit) eboflip->head[1]= ebo->head[1]; eboflip->head[2]= ebo->head[2]; eboflip->rad_head= ebo->rad_head; + eboflip->roll= -ebo->roll; /* Also move connected parent, in case parent's name isn't mirrored properly */ if (eboflip->parent && eboflip->flag & BONE_CONNECTED) -- cgit v1.2.3