mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
ff3a9852a7
commit
a96283ba51
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue