forked from bartvdbraak/blender
Compile fixes for recent commits
This commit is contained in:
parent
d3a878688e
commit
e93f00d73d
@ -36,6 +36,7 @@
|
||||
#include "kernel_projection.h"
|
||||
#include "kernel_differential.h"
|
||||
#include "kernel_object.h"
|
||||
#include "kernel_random.h"
|
||||
#include "kernel_bvh.h"
|
||||
#include "kernel_triangle.h"
|
||||
#include "kernel_curve.h"
|
||||
|
@ -159,8 +159,8 @@ static float gaussRand(RNG *rng)
|
||||
float length2;
|
||||
|
||||
do {
|
||||
x = (float) (nextfr(-1, 1));
|
||||
y = (float)(nextfr(-1, 1));
|
||||
x = (float) (nextfr(rng, -1, 1));
|
||||
y = (float)(nextfr(rng, -1, 1));
|
||||
length2 = x * x + y * y;
|
||||
} while (length2 >= 1 || length2 == 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user