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
Notes:
blender-bot
2023-02-14 07:18:54 +01:00
Referenced by issue #80477, Viewport Optix Denoiser is available when Cycles Render Device is set to None/CUDA, leading to a crash Referenced by issue #79404, Bug when using boolean intersect on simple primitives.
|
@ -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…
Reference in New Issue