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:
authorSergey Sharybin <sergey.vfx@gmail.com>2013-06-09 18:20:46 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2013-06-09 18:20:46 +0400
commitb2c81664ae6f2535ebb114e94fed6449d0697ec7 (patch)
tree050775ba2aead1b1c4d1166f30bc9e633fd50f47 /source/blender/editors/sculpt_paint
parent05ffe37df404462d454273777b656ed06e407da3 (diff)
Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results
Was missing linearization of colro came from byte buffer.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c1
1 files changed, 1 insertions, 0 deletions
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,