[Bf-blender-cvs] [853d2763931] temp-T97479-3d-texturing-undo: Fix compilation error.
Jeroen Bakker
noreply at git.blender.org
Tue May 3 12:57:02 CEST 2022
Commit: 853d27639315db032b6d65909a0bc05f71810155
Author: Jeroen Bakker
Date: Tue May 3 10:24:43 2022 +0200
Branches: temp-T97479-3d-texturing-undo
https://developer.blender.org/rB853d27639315db032b6d65909a0bc05f71810155
Fix compilation error.
===================================================================
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 53a45f5a8d9..87db311324b 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -5434,22 +5434,21 @@ static void sculpt_stroke_done(const bContext *C, struct PaintStroke *UNUSED(str
else {
SCULPT_undo_push_end(ob);
}
-}
-if (brush->sculpt_tool == SCULPT_TOOL_MASK) {
- SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_MASK);
-}
-else if (brush->sculpt_tool == SCULPT_TOOL_PAINT) {
- if (SCULPT_use_image_paint_brush(&tool_settings->paint_mode, ob)) {
- SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_IMAGE);
+ if (brush->sculpt_tool == SCULPT_TOOL_MASK) {
+ SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_MASK);
+ }
+ else if (brush->sculpt_tool == SCULPT_TOOL_PAINT) {
+ if (SCULPT_use_image_paint_brush(&tool_settings->paint_mode, ob)) {
+ SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_IMAGE);
+ }
+ }
+ else {
+ SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_COORDS);
}
-}
-else {
- SCULPT_flush_update_done(C, ob, SCULPT_UPDATE_COORDS);
-}
-WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
-sculpt_brush_exit_tex(sd);
+ WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob);
+ sculpt_brush_exit_tex(sd);
}
static int sculpt_brush_stroke_invoke(bContext *C, wmOperator *op, const wmEvent *event)
More information about the Bf-blender-cvs
mailing list