From 08aad00a5d58ebb388f37172b9d98a8b9b515960 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Fri, 5 Jul 2019 14:30:31 +0200 Subject: Fix wrong colors when creating a float normal map image in texture paint --- source/blender/blenkernel/intern/image_gen.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/blenkernel/intern/image_gen.c') diff --git a/source/blender/blenkernel/intern/image_gen.c b/source/blender/blenkernel/intern/image_gen.c index 6f53c351626..bb2c086f02c 100644 --- a/source/blender/blenkernel/intern/image_gen.c +++ b/source/blender/blenkernel/intern/image_gen.c @@ -46,11 +46,9 @@ static void image_buf_fill_color_slice( /* blank image */ if (rect_float) { - float linear_color[4]; - srgb_to_linearrgb_v4(linear_color, color); for (y = 0; y < height; y++) { for (x = 0; x < width; x++) { - copy_v4_v4(rect_float, linear_color); + copy_v4_v4(rect_float, color); rect_float += 4; } } -- cgit v1.2.3