Fix error in last transform orient commit

This commit is contained in:
Germano Cavalcante 2020-05-11 13:25:26 -03:00
parent 3c56746863
commit 508124b5be
Notes: blender-bot 2023-02-14 07:39:44 +01:00
Referenced by issue #76670, Moving objects with gizmo crashes blender
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}
}
}