diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-04-21 20:35:12 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-04-21 20:43:41 +0300 |
commit | 9ba84342fb6835dd3add1f12c698654d3d79a90e (patch) | |
tree | f938172ec0924d85a9c39a471dc5520aac80a6d6 /source | |
parent | fa5aa18fdddc101b9ddb71971ee76bffea71b853 (diff) |
Fix point density rendering in Cycles.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/pointdensity.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/source/blender/render/intern/source/pointdensity.c b/source/blender/render/intern/source/pointdensity.c index 86f31f79c49..a6350e3c448 100644 --- a/source/blender/render/intern/source/pointdensity.c +++ b/source/blender/render/intern/source/pointdensity.c @@ -933,15 +933,11 @@ static void point_density_sample_func( texvec[1] += dim[1] * (float)y / (float)resolution; texvec[2] += dim[2] * (float)z / (float)resolution; - if (pointdensity(pd, texvec, &texres, vec, &age, col)) { - pointdensity_color(pd, &texres, age, vec, col); + pointdensity(pd, texvec, &texres, vec, &age, col); + pointdensity_color(pd, &texres, age, vec, col); - copy_v3_v3(&values[index*4 + 0], &texres.tr); - values[index*4 + 3] = texres.tin; - } - else { - zero_v4(&values[index*4]); - } + copy_v3_v3(&values[index*4 + 0], &texres.tr); + values[index*4 + 3] = texres.tin; } } } |