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:
authorCampbell Barton <ideasman42@gmail.com>2018-05-07 19:02:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-07 19:02:48 +0300
commitb49184b608df297195c5f0e81da4d8d9ddfb9213 (patch)
treec2624887be563319a7138516d2fcc6100acdb2c6 /source/blender/editors/sculpt_paint/paint_image_2d.c
parentf62b826533422e5de3b08601e5511c233deda529 (diff)
parentf74d85ffc8232a859b1419f5dc25b244ae04375f (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_2d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c
index 83a5a0d0b1b..c2ce9d83782 100644
--- a/source/blender/editors/sculpt_paint/paint_image_2d.c
+++ b/source/blender/editors/sculpt_paint/paint_image_2d.c
@@ -433,7 +433,7 @@ static ImBuf *brush_painter_imbuf_new(BrushPainter *painter, int size, float pre
unsigned char *dst = (unsigned char *)ibuf->rect + (y * size + x) * 4;
rgb_float_to_uchar(dst, rgba);
- dst[3] = FTOCHAR(rgba[3]);
+ dst[3] = unit_float_to_uchar_clamp(rgba[3]);
}
}
}