diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-05 15:30:31 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-07-08 12:05:45 +0300 |
commit | 08aad00a5d58ebb388f37172b9d98a8b9b515960 (patch) | |
tree | eb6e600a9f0b6e820a9d6e8def1cde51aaaac2b3 /source/blender/blenkernel/intern/image_gen.c | |
parent | f49692f4295b7e4f7f53a18204a907366c3612d6 (diff) |
Fix wrong colors when creating a float normal map image in texture paint
Diffstat (limited to 'source/blender/blenkernel/intern/image_gen.c')
-rw-r--r-- | source/blender/blenkernel/intern/image_gen.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; } } |