[Bf-blender-cvs] [21881758916] master: Transform: Invert shear direction aligned to view
Germano Cavalcante
noreply at git.blender.org
Fri May 1 15:00:24 CEST 2020
Commit: 2188175891679a584739dd31df6e45c0a624f9ad
Author: Germano Cavalcante
Date: Fri May 1 10:00:13 2020 -0300
Branches: master
https://developer.blender.org/rB2188175891679a584739dd31df6e45c0a624f9ad
Transform: Invert shear direction aligned to view
Issue introduced in rBc57e4418bb85.
===================================================================
M source/blender/editors/transform/transform_mode_shear.c
===================================================================
diff --git a/source/blender/editors/transform/transform_mode_shear.c b/source/blender/editors/transform/transform_mode_shear.c
index dc0479f4e60..da34bf50ba3 100644
--- a/source/blender/editors/transform/transform_mode_shear.c
+++ b/source/blender/editors/transform/transform_mode_shear.c
@@ -58,12 +58,12 @@ static void initShear_mouseInputMode(TransInfo *t)
/* Needed for axis aligned view gizmo. */
if (t->orientation.types[t->orientation.index] == V3D_ORIENT_VIEW) {
if (t->orient_axis_ortho == 0) {
- if (t->center2d[1] > t->mouse.imval[1]) {
+ if (t->center2d[1] < t->mouse.imval[1]) {
dir_flip = !dir_flip;
}
}
else if (t->orient_axis_ortho == 1) {
- if (t->center2d[0] > t->mouse.imval[0]) {
+ if (t->center2d[0] < t->mouse.imval[0]) {
dir_flip = !dir_flip;
}
}
More information about the Bf-blender-cvs
mailing list