diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-25 18:35:43 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2022-04-25 18:35:56 +0300 |
commit | d30f701e84ccc521caca80f6c9876b6746c49f5f (patch) | |
tree | 64835ce64cca6382e77862b330c7dc2a59c3bafd /source/blender/editors/transform | |
parent | 35dc4ba9e23ac37a22fee49c813aee2a6a2d3e61 (diff) |
Cleanup: Turn some 'eTFlag' into macros
Some of the enum values are a mixture of others and make it difficult
for the IDE to identify them.
Separating these values makes debugging easier.
Diffstat (limited to 'source/blender/editors/transform')
-rw-r--r-- | source/blender/editors/transform/transform.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/transform/transform.h b/source/blender/editors/transform/transform.h index ea0e3708672..68c9a1c23c3 100644 --- a/source/blender/editors/transform/transform.h +++ b/source/blender/editors/transform/transform.h @@ -92,12 +92,10 @@ typedef enum { /** restrictions flags */ T_NO_CONSTRAINT = 1 << 2, T_NULL_ONE = 1 << 3, - T_ALL_RESTRICTIONS = T_NO_CONSTRAINT | T_NULL_ONE, T_PROP_EDIT = 1 << 4, T_PROP_CONNECTED = 1 << 5, T_PROP_PROJECTED = 1 << 6, - T_PROP_EDIT_ALL = T_PROP_EDIT | T_PROP_CONNECTED | T_PROP_PROJECTED, T_V3D_ALIGN = 1 << 7, /** For 2D views such as UV or f-curve. */ @@ -138,12 +136,15 @@ typedef enum { T_AUTOSPLIT = 1 << 21, /** Use drag-start position of the event, otherwise use the cursor coordinates (unmodified). */ - T_EVENT_DRAG_START = (1 << 22), + T_EVENT_DRAG_START = 1 << 22, /** No cursor wrapping on region bounds */ T_NO_CURSOR_WRAP = 1 << 23, } eTFlag; +#define T_ALL_RESTRICTIONS (T_NO_CONSTRAINT | T_NULL_ONE) +#define T_PROP_EDIT_ALL (T_PROP_EDIT | T_PROP_CONNECTED | T_PROP_PROJECTED) + /** #TransInfo.modifiers */ typedef enum { MOD_CONSTRAINT_SELECT_AXIS = 1 << 0, |