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-07 21:49:10 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-05-07 22:51:51 +0300
commit2f63e479313332756d0879b841527a31fa1d30b3 (patch)
tree885425296ac7adf80365d25b281fc8d7f270f4f3 /source/blender/editors/transform/transform.c
parentab122c73ba3504b5bada7f124115a557a7b466ee (diff)
Fix T76504: Change in behavior of constraints orientation
The Extrude operator, whose orientation is NORMAL, has undergone some seemingly accidental changes: - In 2.79 if you press the same key as the axis in constraint, it changes from Normal to No Contraint -> Global -> Normal and repeat this. - In 2.80 it changes from Normal to Local -> No Contraint -> Global -> Local and repeat this. This committee resumes the behavior of 2.79
Diffstat (limited to 'source/blender/editors/transform/transform.c')
-rw-r--r--source/blender/editors/transform/transform.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c
index f3306caa931..c15c8aefddf 100644
--- a/source/blender/editors/transform/transform.c
+++ b/source/blender/editors/transform/transform.c
@@ -825,11 +825,15 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, bool is
}
}
else if (!edit_2d) {
- if (ELEM(cmode, '\0', axis)) {
+ if (cmode == 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);