diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2021-05-12 04:40:56 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2021-05-20 17:05:28 +0300 |
commit | 47f4f3c932b251268f2fcd56a924d5f005bcb8cd (patch) | |
tree | 6d3962978bb6aac3a5ce37051d8badf7e0af4f7f /source/blender/editors/transform/transform.h | |
parent | 4bb2a5b5cb700d4564603f882c750eca5544bde6 (diff) |
Cleanup: Use enum to indicate the current orientation
Improves readability.
Diffstat (limited to 'source/blender/editors/transform/transform.h')
-rw-r--r-- | source/blender/editors/transform/transform.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index f2d5800abb7..a29e02718cf 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -602,7 +602,12 @@ typedef struct TransInfo { short type; float matrix[3][3]; } orient[3]; - short orient_curr; + + enum { + O_DEFAULT = 0, + O_SCENE, + O_SET, + } orient_curr; /** backup from view3d, to restore on end. */ short gizmo_flag; |