diff options
Diffstat (limited to 'source/blender/editors/transform/transform_generics.c')
-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; + } } } |