diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-21 16:57:35 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-21 17:01:06 +0300 |
commit | a39ca327bc8491129d9794d136b39a6ba8cd6ffa (patch) | |
tree | 4d9e975a54ba2a0b796ac4f307b11297cf4836b8 /source/blender/editors/transform/transform_mode.c | |
parent | de7d32bb7dcc7364a07fe23ab0205c70d1db06e4 (diff) |
Fix T76935: Current orientation not taken in account when using "Align to transform orientation"
Diffstat (limited to 'source/blender/editors/transform/transform_mode.c')
-rw-r--r-- | source/blender/editors/transform/transform_mode.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_mode.c b/source/blender/editors/transform/transform_mode.c index 4c14c3aebd7..c2c880b03ff 100644 --- a/source/blender/editors/transform/transform_mode.c +++ b/source/blender/editors/transform/transform_mode.c @@ -61,6 +61,18 @@ bool transdata_check_local_center(TransInfo *t, short around) (t->options & (CTX_MOVIECLIP | CTX_MASK | CTX_PAINT_CURVE)))); } +/* Informs if the mode can be switched during modal. */ +bool transform_mode_is_changeable(const int mode) +{ + return ELEM(mode, + TFM_ROTATION, + TFM_RESIZE, + TFM_TRACKBALL, + TFM_TRANSLATION, + TFM_EDGE_SLIDE, + TFM_VERT_SLIDE); +} + /* -------------------------------------------------------------------- */ /** \name Transform Locks * \{ */ |