diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-11-29 04:49:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-11-29 04:49:02 +0300 |
commit | 535984a848865c07a39610b32a53432d1a078c59 (patch) | |
tree | 7c25d24b5b12c8d7b23de475d39a3d469f000d33 /source/blender/editors/transform/transform.h | |
parent | 27cccaeccd219e08c6947c3789ed8498f12f7878 (diff) |
Cleanup: simplify transform orientation cycling
Remove dummy first index, store a pointer to the user orientation
instead of having it store twice (which could get out of sync).
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r-- | source/blender/editors/transform/transform.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index 8101833a609..5dff9f9f30a 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -503,11 +503,10 @@ typedef struct TransInfo { /*************** NEW STUFF *********************/ short launch_event; /* event type used to launch transform */ - /* Always: 'orientation_types[orientation_index]' */ struct { short user; short index; - short types[3]; + short *types[2]; /* this gets used when current_orientation is V3D_MANIP_CUSTOM */ TransformOrientation *custom; } orientation; |