From a96bf9283a4d7bfda26cded8bd3033dc64f285dc Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 19 Dec 2005 16:32:18 +0000 Subject: [PATCH] Move bug fix hack so it acts only when it needs too. It was showing "global axis" even when using MMB to access user defined orientation (with Ctrl). --- source/blender/src/transform.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/blender/src/transform.c b/source/blender/src/transform.c index e37540bc797..f1506887401 100755 --- a/source/blender/src/transform.c +++ b/source/blender/src/transform.c @@ -495,13 +495,14 @@ static void transformEvent(unsigned short event, short val) { stopConstraint(&Trans); } else { - /* bit hackish... but it prevents mmb select to print the orientation from menu */ - strcpy(Trans.spacename, "global"); - - if (G.qual & LR_CTRLKEY) + if (G.qual & LR_CTRLKEY) { initSelectConstraint(&Trans, Trans.spacemtx); - else + } + else { + /* bit hackish... but it prevents mmb select to print the orientation from menu */ + strcpy(Trans.spacename, "global"); initSelectConstraint(&Trans, mati); + } postSelectConstraint(&Trans); } }