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.h
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.h')
-rw-r--r--source/blender/editors/transform/transform.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index d777b034e76..8101833a609 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -503,8 +503,14 @@ typedef struct TransInfo {
/*************** NEW STUFF *********************/
short launch_event; /* event type used to launch transform */
- short current_orientation;
- TransformOrientation *custom_orientation; /* this gets used when current_orientation is V3D_MANIP_CUSTOM */
+ /* Always: 'orientation_types[orientation_index]' */
+ struct {
+ short user;
+ short index;
+ short types[3];
+ /* this gets used when current_orientation is V3D_MANIP_CUSTOM */
+ TransformOrientation *custom;
+ } orientation;
short gizmo_flag; /* backup from view3d, to restore on end */
short prop_mode;