diff options
author | Miika Hamalainen <blender@miikah.org> | 2012-12-05 21:58:24 +0400 |
---|---|---|
committer | Miika Hamalainen <blender@miikah.org> | 2012-12-05 21:58:24 +0400 |
commit | 8b477463d109a48ac6ab67172c48fd207037c596 (patch) | |
tree | 4cc194f47e73eebb64a1211e9466836e046785f7 | |
parent | 2b962212c8be78603dc49fecaf080f44614af8ee (diff) |
Fix #33411: Smoke simulator using uninitialized noise tile
If loading an existing FFT noise tile failed the tile in memory was left uninitialized.
-rw-r--r-- | intern/smoke/intern/FFT_NOISE.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/smoke/intern/FFT_NOISE.h b/intern/smoke/intern/FFT_NOISE.h index a087b4e1391..8b7e4f2728b 100644 --- a/intern/smoke/intern/FFT_NOISE.h +++ b/intern/smoke/intern/FFT_NOISE.h @@ -167,6 +167,8 @@ static void generatTile_FFT(float* const noiseTileData, std::string filename) for (int x = 0; x < xRes; x++, index++) noise[index] -= forward[index][0] / totalCells; + // fill noiseTileData + memcpy(noiseTileData, noise, sizeof(float) * totalCells); // save out the noise tile saveTile(noise, filename); |