Color Management: texture baking should be correct when color management is disabled

This commit is contained in:
Sergey Sharybin 2012-10-16 15:20:18 +00:00
parent 51fe26b78d
commit 427a90d336

@ -2224,6 +2224,7 @@ static void bake_shade(void *handle, Object *ob, ShadeInput *shi, int UNUSED(qua
float rgb[3];
copy_v3_v3(rgb, shr.combined);
if (R.scene_color_manage)
IMB_colormanagement_scene_linear_to_colorspace_v3(rgb, bs->rect_colorspace);
rgb_float_to_uchar(col, rgb);
}