diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-10-17 16:25:50 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-10-17 16:25:50 +0400 |
commit | 04fab84fd10cc8ea46fb82bb8b067ce1ade144a0 (patch) | |
tree | c2404635ba488d13bd0d76be8d005fb10979404a /source/blender/editors/sculpt_paint/paint_image_2d.c | |
parent | 33bff4caef5ee280c3c31a587af15b6e748a5284 (diff) |
More fixes:
* Fill brush did not do proper srgb conversion for byte images (reported
by Sebastian Koenig, thanks!)
* Color sampling for palettes did not refresh the toolbar.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 5530f947b8c..ea0e30a6635 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -1619,6 +1619,7 @@ void paint_2d_gradient_fill( } do_colorband(br->gradient, f, color_f); + linearrgb_to_srgb_v3_v3(color_f, color_f); rgba_float_to_uchar((unsigned char *)&color_b, color_f); ((unsigned char *)&color_b)[3] *= br->alpha; IMB_blend_color_byte((unsigned char *)(ibuf->rect + y_px * ibuf->x + x_px), |