diff options
-rw-r--r-- | source/blender/render/intern/source/rayshade.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/rayshade.c b/source/blender/render/intern/source/rayshade.c index 08fbe8472c0..36b65717599 100644 --- a/source/blender/render/intern/source/rayshade.c +++ b/source/blender/render/intern/source/rayshade.c @@ -641,7 +641,7 @@ static void halton_sample(double *ht_invprimes, double *ht_nums, double *v) for (i = 0; i < 2; i++) { - double r = (1.0 - ht_nums[i]) - 1e-10; + double r = fabs((1.0 - ht_nums[i]) - 1e-10); if (ht_invprimes[i] >= r) { |