diff options
author | Robert Guetzkow <rjg> | 2021-02-02 22:35:47 +0300 |
---|---|---|
committer | Robert Guetzkow <gitcommit@outlook.de> | 2021-02-02 22:37:28 +0300 |
commit | 4a80c0e27519b63929aa48b6fb1d673666829b21 (patch) | |
tree | 88ee5548a4fbe4d4a2b38a844b388e0e9bac078d /source/blender/gpu | |
parent | 8c36f6becff2e53e8d545c4c82f3334588140c8f (diff) |
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
Diffstat (limited to 'source/blender/gpu')
0 files changed, 0 insertions, 0 deletions