Blender Git Loki

Git Commits -> Revision 4a80c0e

Revision 4a80c0e by Robert Guetzkow (master)
February 2, 2021, 19:37 (GMT)
Fix T85225: Variable scope in ridged multi-fractal noise

This patch fixes a bug introduced in
rB74188e65028d268af887ab2140e4253087410c1e.
The commit incorrectly moved the declaration and intialization of the
variable `pwr` inside the loop. Since the value was originally modified
in each iteration based on it's previous value and `pwHL` through
`pwr *= pwHL`, this change in scope was wrong. It resetted the value in
each iteration. This patch moves the declaration of `pwr` outside the
loop again.

Reviewed By: JacquesLucke

Differential Revision: https://developer.blender.org/D10258

Commit Details:

Full Hash: 4a80c0e27519b63929aa48b6fb1d673666829b21
Parent Commit: 8c36f6b
Lines Changed: +2, -2

1 Modified Path:

/source/blender/blenlib/intern/noise.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021