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-31 21:19:29 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2020-06-01 00:28:52 +0300
commit14af27e63d38d736f8287897df223bad4d5c9501 (patch)
tree42962a0cbc10b63dbab30f1d70b1d532dd9a1f63 /source/blender/editors/transform/transform_constraints.c
parent4cb883b6b2119385bbb4d1af050b491a62f52e4a (diff)
Fix T77194: Force global orientation on select constraint (Shift MMB) not working
This feature was a hack to prevent mmb select to print the orientation from menu in pre 2.80 versions. Removing this feature as it is no longer an issue.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 228e8d58162..0347522b8e8 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -876,21 +876,15 @@ void stopConstraint(TransInfo *t)
/*------------------------- MMB Select -------------------------------*/
-void initSelectConstraint(TransInfo *t, bool force_global)
+void initSelectConstraint(TransInfo *t)
{
- short orientation;
- if (force_global) {
- orientation = V3D_ORIENT_GLOBAL;
- }
- else {
- if (t->orient_curr == 0) {
- t->orient_curr = 1;
- transform_orientations_current_set(t, t->orient_curr);
- }
- orientation = t->orient[t->orient_curr].type;
+ if (t->orient_curr == 0) {
+ t->orient_curr = 1;
+ transform_orientations_current_set(t, t->orient_curr);
}
- setUserConstraint(t, orientation, CON_APPLY | CON_SELECT, "");
+ short orientation = t->orient[t->orient_curr].type;
+ setUserConstraint(t, orientation, CON_APPLY | CON_SELECT, "%s");
setNearestAxis(t);
}