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 Cavalcante <germano.costa@ig.com.br>2020-05-20 22:22:28 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-05-20 22:22:28 +0300
commit8bff3ec76bbdb934a5bf7bdb53c14a59481a3aed (patch)
tree0864f0b4492abc79bc4a0e4e27dea5ec4414cf00 /source/blender/editors/transform/transform_constraints.c
parent600fd1c6f0ed5025068598bfb98f6881f2563acd (diff)
Transform: Don't negate the z axis of the View orientation
This was so because of the rotate transformation mode but it can make other modes confusing and add unnecessary complexity.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index ffbc9d0953c..b05b99d9601 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -679,10 +679,7 @@ void setUserConstraint(TransInfo *t, short orientation, int mode, const char fte
break;
case V3D_ORIENT_VIEW:
BLI_snprintf(text, sizeof(text), ftext, TIP_("view"));
- float mtx[3][3];
- copy_m3_m3(mtx, t->spacemtx);
- negate_v3(mtx[2]);
- setConstraint(t, mtx, mode, text);
+ setConstraint(t, t->spacemtx, mode, text);
break;
case V3D_ORIENT_CURSOR:
BLI_snprintf(text, sizeof(text), ftext, TIP_("cursor"));