From 910b0f2cda7b8ca45bf16d429bb8df986e69ce1f Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Sun, 22 May 2005 12:01:12 +0000 Subject: [PATCH] Local constraint uses center mode again. This fixes a bug in the tracker, wasn't really a "bug", but anyway... --- source/blender/src/transform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index c0c30a41a96..e83e55c6bc4 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -1069,7 +1069,7 @@ void ElementResize(TransInfo *t, TransData *td, float mat[3][3]) { } /* local constraint shouldn't alter center */ - if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) { + if (G.vd->around == V3D_LOCAL) { if (t->flag & T_OBJECT) { VECCOPY(center, td->center); // not supported in editmode yet } @@ -1429,7 +1429,7 @@ static void applyRotation(TransInfo *t, float angle, float axis[3]) int i; /* saving original center */ - if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) { + if (G.vd->around == V3D_LOCAL) { VECCOPY(center, t->center); } @@ -1441,7 +1441,7 @@ static void applyRotation(TransInfo *t, float angle, float axis[3]) break; /* local constraint shouldn't alter center */ - if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) { + if (G.vd->around == V3D_LOCAL) { if (t->flag & T_OBJECT) VECCOPY(t->center, td->center); // not supported in editmode yet } @@ -1458,7 +1458,7 @@ static void applyRotation(TransInfo *t, float angle, float axis[3]) } /* restoring original center */ - if (G.vd->around == V3D_LOCAL || (t->con.mode & CON_LOCAL)) { + if (G.vd->around == V3D_LOCAL) { VECCOPY(t->center, center); } }