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:
Joseph Eagar 2022-08-09 12:33:24 -07:00
parent 1d68318e97
commit 11bdc321a2
Notes: blender-bot 2023-02-14 03:59:42 +01:00
Referenced by commit f68e50a263, WM: operators that add their own undo pushes now clears the redo panel
Referenced by commit 26f66e1423, 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
1 changed files with 1 additions and 1 deletions

View File

@ -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. */