Fix assert when cleaning constraints in the transform tool

When enabled, the modal key item "Clear Constraint" did not reset
the default orientation.

This does not bring changes in the user's point of view.
This commit is contained in:
2020-09-03 17:57:58 -03:00
parent ff3a9852a7
commit a96283ba51

View File

@@ -976,6 +976,11 @@ void startConstraint(TransInfo *t)
void stopConstraint(TransInfo *t)
{
if (t->orient_curr != 0) {
t->orient_curr = 0;
transform_orientations_current_set(t, t->orient_curr);
}
t->con.mode &= ~(CON_APPLY | CON_SELECT);
*t->con.text = '\0';
t->num.idx_max = t->idx_max;