[Bf-blender-cvs] [6b49b54bb13] master: Sculpt: Blank out redo panel for stroke operator

Joseph Eagar noreply at git.blender.org
Mon Aug 15 22:20:34 CEST 2022


Commit: 6b49b54bb13721b8fbe23acb6084af9280887778
Author: Joseph Eagar
Date:   Mon Aug 15 13:20:09 2022 -0700
Branches: master
https://developer.blender.org/rB6b49b54bb13721b8fbe23acb6084af9280887778

Sculpt: Blank out redo panel for stroke operator

Unfortunately we do need the panel enabled to prevent
undo bugs.

===================================================================

M	source/blender/editors/sculpt_paint/sculpt.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list