diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-08-09 22:33:24 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-08-09 22:54:24 +0300 |
commit | 11bdc321a274712e5c5ae83ff2c199690f66ecf7 (patch) | |
tree | 13e670f2a6536334b408ffa642b48f0647ce7de4 /source/blender/editors/sculpt_paint | |
parent | 1d68318e975abc2a6b3fc05f011db181a11e0ca5 (diff) |
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.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 8df5b093560..02d21941a25 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -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. */ |