diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-11 19:43:29 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-11 19:43:29 +0300 |
commit | b026965f80c7e1beabbf4310af83af66c5b04e45 (patch) | |
tree | 52f652b8ee64f19df74c2510d16325f05c9d5713 /source/blender/editors/transform/transform.c | |
parent | 508124b5bea44a8a473da02dd23ad492ef276708 (diff) |
Revert "Fix T76504: Change in behavior of constraints orientation"
This reverts commit 2f63e479313332756d0879b841527a31fa1d30b3.
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r-- | source/blender/editors/transform/transform.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index 6ff3826da09..6ce006a0f81 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -825,15 +825,11 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, bool is } } else if (!edit_2d) { - if (cmode == axis) { + if (ELEM(cmode, '\0', axis)) { /* Successive presses on existing axis, cycle orientation modes. */ t->orientation.index = (t->orientation.index + 1) % ARRAY_SIZE(t->orientation.types); initTransformOrientation(t->context, t, t->orientation.types[t->orientation.index]); } - else if (t->orientation.index != 1) { - t->orientation.index = 1; - initTransformOrientation(t->context, t, t->orientation.types[t->orientation.index]); - } if (t->orientation.index == 0) { stopConstraint(t); |