diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-08-15 23:20:09 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-08-15 23:20:09 +0300 |
commit | 6b49b54bb13721b8fbe23acb6084af9280887778 (patch) | |
tree | 38628036bb24913ce3a0e706ccf9be305c212761 /source/blender/editors/sculpt_paint | |
parent | b43b62191cde60fee65f8ff1ad108b271f42295d (diff) |
Sculpt: Blank out redo panel for stroke operator
Unfortunately we do need the panel enabled to prevent
undo bugs.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index ffa931268fd..ded3363bfe2 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5645,6 +5645,10 @@ static int sculpt_brush_stroke_modal(bContext *C, wmOperator *op, const wmEvent return paint_stroke_modal(C, op, event, (struct PaintStroke **)&op->customdata); } +void sculpt_redo_empty_ui(bContext *C, wmOperator *op) +{ +} + void SCULPT_OT_brush_stroke(wmOperatorType *ot) { /* Identifiers. */ @@ -5658,6 +5662,7 @@ void SCULPT_OT_brush_stroke(wmOperatorType *ot) ot->exec = sculpt_brush_stroke_exec; ot->poll = SCULPT_poll; ot->cancel = sculpt_brush_stroke_cancel; + ot->ui = sculpt_redo_empty_ui; /* Flags (sculpt does own undo? (ton)). */ ot->flag = OPTYPE_BLOCKING | OPTYPE_REGISTER | OPTYPE_UNDO; |