[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [57313] trunk/blender/source/blender/ editors/sculpt_paint/paint_image_proj.c: Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results

Sergey Sharybin sergey.vfx at gmail.com
Sun Jun 9 16:20:47 CEST 2013


Revision: 57313
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=57313
Author:   nazgul
Date:     2013-06-09 14:20:46 +0000 (Sun, 09 Jun 2013)
Log Message:
-----------
Fix #35611: 'Quick Edit' in Texture mode + RGBA16bit gives bright results

Was missing linearization of colro came from byte buffer.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c

Modified: trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c
===================================================================
--- trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c	2013-06-09 13:13:47 UTC (rev 57312)
+++ trunk/blender/source/blender/editors/sculpt_paint/paint_image_proj.c	2013-06-09 14:20:46 UTC (rev 57313)
@@ -3794,6 +3794,7 @@
 						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,




More information about the Bf-blender-cvs mailing list