Fix constrain plane not being set in tranform code

Error introduced in rB388b9162469650c
This commit is contained in:
2020-09-25 12:28:11 -03:00
parent 90ce6dbf4c
commit 4c46a09824

View File

@@ -770,7 +770,12 @@ static void transform_event_xyz_constraint(TransInfo *t, short key_type, bool is
stopConstraint(t);
}
else {
setUserConstraint(t, constraint_axis, is_plane ? msg3 : msg2);
if (is_plane == false) {
setUserConstraint(t, constraint_axis, msg2);
}
else {
setUserConstraint(t, constraint_plane, msg3);
}
}
}
t->redraw |= TREDRAW_HARD;