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
+1 -1
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. */