Fix error in last transform orient commit
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue