Fix uninitialized value
Own mistake in rB74188e65028d268af887ab2140e4253087410c1e
This commit is contained in:
parent
d9e7a42640
commit
9a7da1242d
Notes:
blender-bot
2023-02-14 06:21:59 +01:00
Referenced by issue #82387, File saved in 2.92 alpha cannnot be opened in previous versions
|
@ -1263,7 +1263,7 @@ float BLI_noise_generic_turbulence(
|
|||
z *= noisesize;
|
||||
}
|
||||
|
||||
float sum = 0, amp, fscale = 1;
|
||||
float sum = 0, amp = 1, fscale = 1;
|
||||
for (int i = 0; i <= oct; i++, amp *= 0.5f, fscale *= 2.0f) {
|
||||
float t = noisefunc(fscale * x, fscale * y, fscale * z);
|
||||
if (hard) {
|
||||
|
|
Loading…
Reference in New Issue