Fix compilation error on certain platforms.

Seems this isn't an issue on newer compilers.
This commit is contained in:
Jeroen Bakker 2022-02-22 09:59:26 +01:00
parent 1d4ed6ba29
commit 4ba894cbb8
1 changed files with 2 additions and 1 deletions

View File

@ -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,