diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-09-25 18:28:11 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-09-25 18:28:22 +0300 |
commit | 4c46a09824256275d8b630213bc79eb78f458ad3 (patch) | |
tree | b0ce9fcd1de162c68db21df1cefedffed9e2a3d0 /source | |
parent | 90ce6dbf4c06e4c8b71e2a24cc3298c835aed0f9 (diff) |
Fix constrain plane not being set in tranform code
Error introduced in rB388b9162469650c
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform.c b/source/blender/editors/transform/transform.c index ab24bbb35d4..7ed276e45de 100644 --- a/source/blender/editors/transform/transform.c +++ b/source/blender/editors/transform/transform.c @@ -770,7 +770,12 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, bool is stopConstraint(t); } else { - setUserConstraint(t, constraint_axis, is_plane ? msg3 : msg2); + if (is_plane == false) { + setUserConstraint(t, constraint_axis, msg2); + } + else { + setUserConstraint(t, constraint_plane, msg3); + } } } t->redraw |= TREDRAW_HARD; |