[Bf-blender-cvs] [11bdc321a27] master: Sculpt: Register sculpt brush op so it clears last operator panel

Joseph Eagar noreply at git.blender.org
Tue Aug 9 22:08:19 CEST 2022


Commit: 11bdc321a274712e5c5ae83ff2c199690f66ecf7
Author: Joseph Eagar
Date:   Tue Aug 9 12:33:24 2022 -0700
Branches: master
https://developer.blender.org/rB11bdc321a274712e5c5ae83ff2c199690f66ecf7

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.

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

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



More information about the Bf-blender-cvs mailing list