diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2015-12-21 20:31:13 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2015-12-21 20:31:48 +0300 |
commit | ee2b583a059777162ce68eaa705481c210805513 (patch) | |
tree | d76af0ea9bdfd36b47fc0a37788445f052e3a95a /source/blender/render | |
parent | 39d11352e08cb3f8f0802275c67c847f64d8fd0b (diff) |
Cycles-Bake: Fix Uninitialised value created by a heap allocation
This was causing some random black bakes. It was introduced in of of the commits replacing calloc by malloc. Things should be better now.
This error was only noticeable when baking the selected objects (not when baking from selected to active).
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/bake_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/bake_api.c b/source/blender/render/intern/source/bake_api.c index d8166d11c72..9a26be81ef3 100644 --- a/source/blender/render/intern/source/bake_api.c +++ b/source/blender/render/intern/source/bake_api.c @@ -645,6 +645,7 @@ void RE_bake_pixels_populate( /* initialize all pixel arrays so we know which ones are 'blank' */ for (i = 0; i < num_pixels; i++) { pixel_array[i].primitive_id = -1; + pixel_array[i].object_id = 0; } for (i = 0; i < bake_images->size; i++) { |