From b2c81664ae6f2535ebb114e94fed6449d0697ec7 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 9 Jun 2013 14:20:46 +0000 Subject: Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results Was missing linearization of colro came from byte buffer. --- source/blender/editors/sculpt_paint/paint_image_proj.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index 33da5cc5cb5..3fdbe58ddc0 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -3794,6 +3794,7 @@ static void *do_projectpaint_thread(void *ph_v) float mask = ((float)projPixel->mask) * (1.0f / 65535.0f); straight_uchar_to_premul_float(newColor_f, projPixel->newColor.ch); + IMB_colormanagement_colorspace_to_scene_linear_v4(newColor_f, TRUE, ps->reproject_ibuf->rect_colorspace); mul_v4_v4fl(newColor_f, newColor_f, mask); blend_color_mix_float(projPixel->pixel.f_pt, projPixel->origColor.f, -- cgit v1.2.3