Transform: Invert shear direction aligned to view

Issue introduced in rBc57e4418bb85.
This commit is contained in:
Germano Cavalcante 2020-05-01 10:00:13 -03:00
parent d49b148459
commit 2188175891
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}