diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2014-05-09 01:12:18 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2014-05-09 01:12:18 +0400 |
commit | d1cf35069dd7baa2f655092875ec36a55cfcc501 (patch) | |
tree | 57b985b640885319145d2613923015b2b5a803d4 /source | |
parent | 4c5fe540bf60181586d6bb500fcab3324b9be83a (diff) |
Fix double promotion to scene linear in 2s painting.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 7888b150bda..16dacaebfb1 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -280,7 +280,7 @@ static ImBuf *brush_painter_imbuf_new(BrushPainter *painter, int size) BKE_brush_sample_tex_3D(scene, brush, texco, rgba, thread, pool); /* TODO(sergey): Support texture paint color space. */ if (!use_float) { - IMB_colormanagement_display_to_scene_linear_v3(rgba, display); + IMB_colormanagement_scene_linear_to_display_v3(rgba, display); } mul_v3_v3(rgba, brush_rgb); } @@ -375,7 +375,7 @@ static void brush_painter_imbuf_update(BrushPainter *painter, ImBuf *oldtexibuf, BKE_brush_sample_tex_3D(scene, brush, texco, rgba, thread, pool); /* TODO(sergey): Support texture paint color space. */ if (!use_float) { - IMB_colormanagement_display_to_scene_linear_v3(rgba, display); + IMB_colormanagement_scene_linear_to_display_v3(rgba, display); } mul_v3_v3(rgba, brush_rgb); } |