Sculpt: disable undo flag for sculpt mask lasso

While this is harmless, it did cause T55399 in the past.

Sculpt adds it's own undo steps, so don't request the operator type
to do it too.

This is consistent with other sculpt operators.
This commit is contained in:
Campbell Barton 2019-01-31 18:48:59 +11:00
parent 77254df480
commit 8f4b7d706b
Notes: blender-bot 2023-02-14 05:45:32 +01:00
Referenced by issue #61035, Draw manager crash opening file with curves
Referenced by issue #55399, Double undo in sculpt mode after lasso mask. Follow up for  Maniphest T55033
1 changed files with 1 additions and 1 deletions

View File

@ -535,7 +535,7 @@ void PAINT_OT_mask_lasso_gesture(wmOperatorType *ot)
ot->poll = sculpt_mode_poll;
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
ot->flag = OPTYPE_REGISTER;
/* properties */
WM_operator_properties_gesture_lasso(ot);