Sculpt: Register sculpt brush op so it clears last operator panel
Needed to prevent changing values in the last operator panel from destructively undoing brush steps.
This commit is contained in:
parent
1d68318e97
commit
11bdc321a2
Notes:
blender-bot
2023-02-14 03:59:42 +01:00
Referenced by commitf68e50a263
, WM: operators that add their own undo pushes now clears the redo panel Referenced by commit26f66e1423
, Revert "Sculpt: Register sculpt brush op so it clears last operator panel" Referenced by issue #104174, Regression: Clicking over empty viewport creates undo step in sculpt mode Referenced by issue #101743, Regression: Redo panel created on sculpting
|
@ -5656,7 +5656,7 @@ void SCULPT_OT_brush_stroke(wmOperatorType *ot)
|
|||
ot->cancel = sculpt_brush_stroke_cancel;
|
||||
|
||||
/* Flags (sculpt does own undo? (ton)). */
|
||||
ot->flag = OPTYPE_BLOCKING;
|
||||
ot->flag = OPTYPE_BLOCKING | OPTYPE_REGISTER | OPTYPE_UNDO;
|
||||
|
||||
/* Properties. */
|
||||
|
||||
|
|
Loading…
Reference in New Issue