diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-02-22 11:59:26 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-02-22 12:00:03 +0300 |
commit | 4ba894cbb88a6cf312aece6432b84a5de6bb9aa3 (patch) | |
tree | b25188cd39e70e57e0107d4b83b84079a670e782 /source/blender/editors/sculpt_paint/paint_image.cc | |
parent | 1d4ed6ba2964eb6ec9bf0e0648f8bb60ab7a914a (diff) |
Fix compilation error on certain platforms.
Seems this isn't an issue on newer compilers.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.cc')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.cc b/source/blender/editors/sculpt_paint/paint_image.cc index dbc0398f807..139fc6a0409 100644 --- a/source/blender/editors/sculpt_paint/paint_image.cc +++ b/source/blender/editors/sculpt_paint/paint_image.cc @@ -615,7 +615,7 @@ static void paint_stroke_done(const bContext *C, struct PaintStroke *stroke) } else { switch (pop->mode) { - case eTexPaintMode::_2D: + case eTexPaintMode::_2D: { float color[3]; if (paint_stroke_inverted(stroke)) { srgb_to_linearrgb_v3_v3(color, BKE_brush_secondary_color_get(scene, brush)); @@ -626,6 +626,7 @@ static void paint_stroke_done(const bContext *C, struct PaintStroke *stroke) paint_2d_bucket_fill( C, color, brush, pop->startmouse, pop->prevmouse, pop->stroke_handle); break; + } case eTexPaintMode::_3D_PROJECT: paint_proj_stroke(C, |