diff options
Diffstat (limited to 'source/blender/blenlib/intern/noise.c')
-rw-r--r-- | source/blender/blenlib/intern/noise.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/noise.c b/source/blender/blenlib/intern/noise.c index f9b6218eae5..4ba533c72aa 100644 --- a/source/blender/blenlib/intern/noise.c +++ b/source/blender/blenlib/intern/noise.c @@ -1634,7 +1634,8 @@ float BLI_noise_mg_ridged_multi_fractal(float x, } } - float result, signal = powf(offset - fabsf(noisefunc(x, y, z)), 2); + float signal = powf(offset - fabsf(noisefunc(x, y, z)), 2); + float result = signal; for (int i = 1; i < (int)octaves; i++) { float pwHL = powf(lacunarity, -H); float pwr = pwHL; /* starts with i=1 instead of 0 */ |