[Bf-blender-cvs] [4ba894cbb88] master: Fix compilation error on certain platforms.
Jeroen Bakker
noreply at git.blender.org
Tue Feb 22 10:00:49 CET 2022
Commit: 4ba894cbb88a6cf312aece6432b84a5de6bb9aa3
Author: Jeroen Bakker
Date: Tue Feb 22 09:59:26 2022 +0100
Branches: master
https://developer.blender.org/rB4ba894cbb88a6cf312aece6432b84a5de6bb9aa3
Fix compilation error on certain platforms.
Seems this isn't an issue on newer compilers.
===================================================================
M source/blender/editors/sculpt_paint/paint_image.cc
===================================================================
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,
More information about the Bf-blender-cvs
mailing list