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>2022-03-23 18:25:32 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2022-03-23 18:26:58 +0300
commit827e9ccb29dd50d155972444d608c35cf4698d6a (patch)
tree74bcffc368c9bbf1ba3f441eb81bd242453912e5 /source/blender/editors/transform/transform_constraints.c
parent6cc83f9079de11ddb53af5bab3e0442a234aadb2 (diff)
Revert "Fix T96728: 'Automatic Constraint' using the wrong orientation"
This reverts commit 6cc83f9079de11ddb53af5bab3e0442a234aadb2. That commit removed the feature of cancel the 'Auto Constraint' if it is enabled without drag.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 0ccabf5798f..81b35e4539b 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -984,7 +984,6 @@ void initSelectConstraint(TransInfo *t)
}
setUserConstraint(t, CON_APPLY | CON_SELECT, "%s");
- selectConstraint(t);
}
void selectConstraint(TransInfo *t)
@@ -997,7 +996,19 @@ void selectConstraint(TransInfo *t)
void postSelectConstraint(TransInfo *t)
{
+ if (!(t->con.mode & CON_SELECT)) {
+ return;
+ }
+
+ t->con.mode &= ~CON_AXIS0;
+ t->con.mode &= ~CON_AXIS1;
+ t->con.mode &= ~CON_AXIS2;
t->con.mode &= ~CON_SELECT;
+
+ setNearestAxis(t);
+
+ startConstraint(t);
+ t->redraw = TREDRAW_HARD;
}
static void setNearestAxis2d(TransInfo *t)