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>2021-05-12 04:40:56 +0300
committerGermano Cavalcante <germano.costa@ig.com.br>2021-05-12 05:44:50 +0300
commitcb385a117bf00d0b482aa2660a6b573ab4458026 (patch)
tree9eda1db07b236f660d4412463f1a4370b5e0342d /source/blender/editors/transform/transform.h
parentcbeeca8167f840798a0977906be911a09e7a63dd (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.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h
index 090b8b83dcc..45465518f87 100644
--- a/source/blender/editors/transform/transform.h
+++ b/source/blender/editors/transform/transform.h
@@ -600,7 +600,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;