Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-08-09 22:33:24 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-08-09 22:54:24 +0300
commit11bdc321a274712e5c5ae83ff2c199690f66ecf7 (patch)
tree13e670f2a6536334b408ffa642b48f0647ce7de4
parent1d68318e975abc2a6b3fc05f011db181a11e0ca5 (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.
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
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. */