fix for [#28788] wasn't complete, pose bones scale was ignoring "Individual origins...
authorCampbell Barton <ideasman42@gmail.com>
Mon, 3 Oct 2011 16:20:05 +0000 (16:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 3 Oct 2011 16:20:05 +0000 (16:20 +0000)
source/blender/editors/transform/transform.c

index 898785fd120d47e25da4cf0598f924eb91918930..73acd1f90000a9674d0682ed3f031e57f3615786 100644 (file)
@@ -2606,29 +2606,18 @@ static void ElementResize(TransInfo *t, TransData *td, float mat[3][3]) {
        }
        
        /* local constraint shouldn't alter center */
        }
        
        /* local constraint shouldn't alter center */
-       if (t->around == V3D_LOCAL) {
-               if (t->flag & T_OBJECT) {
-                       copy_v3_v3(center, td->center);
-               }
-               else if (t->flag & T_EDIT) {
-
-                       if(     (t->settings->selectmode & SCE_SELECT_FACE) ||
-                               (t->obedit && t->obedit->type == OB_ARMATURE))
-                       {
-                               copy_v3_v3(center, td->center);
-                       }
-                       else {
-                               copy_v3_v3(center, t->center);
-                       }
-               }
-               else {
-                       copy_v3_v3(center, t->center);
-               }
+       if ((t->around == V3D_LOCAL) &&
+               (   (t->flag & (T_OBJECT|T_POSE)) ||
+                   ((t->flag & T_EDIT) && (t->settings->selectmode & SCE_SELECT_FACE)) ||
+                   (t->obedit && t->obedit->type == OB_ARMATURE))
+               )
+       {
+               copy_v3_v3(center, td->center);
        }
        else {
                copy_v3_v3(center, t->center);
        }
        }
        else {
                copy_v3_v3(center, t->center);
        }
-       
+
        if (td->ext) {
                float fsize[3];
                
        if (td->ext) {
                float fsize[3];