diff options
author | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-11 19:25:26 +0300 |
---|---|---|
committer | Germano Cavalcante <germano.costa@ig.com.br> | 2020-05-11 19:25:37 +0300 |
commit | 508124b5bea44a8a473da02dd23ad492ef276708 (patch) | |
tree | b42fb2b6aafddec2e72c5a67634ecccb9585258f | |
parent | 3c567468637edd819bc763a9079fcf0ae2e6b4ab (diff) |
Fix error in last transform orient commit
-rw-r--r-- | source/blender/editors/transform/transform_generics.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_generics.c b/source/blender/editors/transform/transform_generics.c index 2a3c8ef60c3..23f1295db3e 100644 --- a/source/blender/editors/transform/transform_generics.c +++ b/source/blender/editors/transform/transform_generics.c @@ -1698,7 +1698,10 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve orient_slot->index_custom); /* Add the slot value to the orient_type to be used for Redo. */ - orient_type_constraint = orient_slot->type + orient_slot->index_custom; + orient_type_constraint = orient_slot->type; + if (orient_type_constraint == V3D_ORIENT_CUSTOM) { + orient_type_constraint += orient_slot->index_custom; + } } } |