Sculpt: Blank out redo panel for stroke operator
Unfortunately we do need the panel enabled to prevent undo bugs.
This commit is contained in:
parent
b43b62191c
commit
6b49b54bb1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue