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:
authorCampbell Barton <ideasman42@gmail.com>2018-11-28 02:01:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-11-28 02:15:02 +0300
commit6491d50d02b7c93b4955fe05dae62930f3a76ce1 (patch)
tree31b1513e33760b716a16366266dbd4e7f37bdc32 /source/blender/editors/transform/transform_constraints.c
parent437d7d7cb9df3132d2e935f2b500f8669c17c4cc (diff)
Transform: default to user-defined orientation
Previously we tried this but reverted (see 64d40c82c324) because there wasn't a predictable set of keys to use global-space. Now the keys are swapped: - 'GX' always transforms in the user defined orientation. - 'GXX' always transforms in global space. As before 'GXXX' cycles back to disabling constraints. This does have a down side that GXX won't be used for local-space when the user has global space set. Also, when global is the user-orientation, pressing GX and GXX does the same thing. Note: examples here use GX but could be any transform-mode/axis.
Diffstat (limited to 'source/blender/editors/transform/transform_constraints.c')
-rw-r--r--source/blender/editors/transform/transform_constraints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_constraints.c b/source/blender/editors/transform/transform_constraints.c
index 22d616572c1..fe997b77a31 100644
--- a/source/blender/editors/transform/transform_constraints.c
+++ b/source/blender/editors/transform/transform_constraints.c
@@ -709,7 +709,7 @@ void setUserConstraint(TransInfo *t, short orientation, int mode, const char fte
{
char orientation_str[128];
BLI_snprintf(orientation_str, sizeof(orientation_str), "%s \"%s\"",
- IFACE_("custom orientation"), t->custom_orientation->name);
+ IFACE_("custom orientation"), t->orientation.custom->name);
BLI_snprintf(text, sizeof(text), ftext, orientation_str);
setConstraint(t, t->spacemtx, mode, text);
break;