Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGermano Cavalcantemano-wii <germano.costa@ig.com.br>2021-01-11 02:55:23 +0300
committerGermano Cavalcantemano-wii <germano.costa@ig.com.br>2021-01-11 02:58:45 +0300
commitd4330ae70be6a924d40ae7efccb988d51109c5c4 (patch)
tree3ed315b261f7edbb94534d0b29c5386f82b55642 /source/blender/editors/transform
parentad15e764dd92e8f005d2469091ea6a0da4d2cf39 (diff)
Transform: In the Header, show translation value in local space only with constraint
This partially reverts commit ad15e764dd92. The local value is only useful with constraint.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r--source/blender/editors/transform/transform_mode_translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_mode_translate.c b/source/blender/editors/transform/transform_mode_translate.c
index c94da21950d..851e0feb5f5 100644
--- a/source/blender/editors/transform/transform_mode_translate.c
+++ b/source/blender/editors/transform/transform_mode_translate.c
@@ -427,7 +427,7 @@ static void applyTranslation(TransInfo *t, const int UNUSED(mval[2]))
/* Set the redo value. */
mul_v3_m3v3(t->values_final, t->spacemtx_inv, global_dir);
- headerTranslation(t, t->values_final, str);
+ headerTranslation(t, (t->con.mode & CON_APPLY) ? t->values_final : global_dir, str);
recalcData(t);
ED_area_status_text(t->area, str);