Commit: f5221bbe7eb546b61221d1d0711ef09bc75bb072
Author: Joshua Leung
Date:   Sun May 29 19:37:40 2016 +1200
Branches: compositor-2016
https://developer.blender.org/rBf5221bbe7eb546b61221d1d0711ef09bc75bb072

Fix T48507: Symmetrize doesn't work properly on Bendy Bones

===================================================================

M       source/blender/editors/armature/armature_utils.c

===================================================================

diff --git a/source/blender/editors/armature/armature_utils.c 
b/source/blender/editors/armature/armature_utils.c
index d73536e..6306926 100644
--- a/source/blender/editors/armature/armature_utils.c
+++ b/source/blender/editors/armature/armature_utils.c
@@ -367,6 +367,8 @@ void transform_armature_mirror_update(Object *obedit)
                                        eboflip->tail[2] = ebo->tail[2];
                                        eboflip->rad_tail = ebo->rad_tail;
                                        eboflip->roll = -ebo->roll;
+                                       eboflip->curveOutX = -ebo->curveOutX;
+                                       eboflip->roll2 = -ebo->roll2;
                                        
                                        /* Also move connected children, in 
case children's name aren't mirrored properly */
                                        for (children = arm->edbo->first; 
children; children = children->next) {
@@ -382,6 +384,8 @@ void transform_armature_mirror_update(Object *obedit)
                                        eboflip->head[2] = ebo->head[2];
                                        eboflip->rad_head = ebo->rad_head;
                                        eboflip->roll = -ebo->roll;
+                                       eboflip->curveInX = -ebo->curveInX;
+                                       eboflip->roll1 = -ebo->roll1;
                                        
                                        /* Also move connected parent, in case 
parent's name isn't mirrored properly */
                                        if (eboflip->parent && eboflip->flag & 
BONE_CONNECTED) {
@@ -395,6 +399,11 @@ void transform_armature_mirror_update(Object *obedit)
                                        eboflip->roll = -ebo->roll;
                                        eboflip->xwidth = ebo->xwidth;
                                        eboflip->zwidth = ebo->zwidth;
+                                       
+                                       eboflip->curveInX = -ebo->curveInX;
+                                       eboflip->curveOutX = -ebo->curveOutX;
+                                       eboflip->roll1 = -ebo->roll1;
+                                       eboflip->roll2 = -ebo->roll2;
                                }
                        }
                }

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to