diff options
author | Daniel Genrich <daniel.genrich@gmx.net> | 2009-08-09 19:04:31 +0400 |
---|---|---|
committer | Daniel Genrich <daniel.genrich@gmx.net> | 2009-08-09 19:04:31 +0400 |
commit | b58083ea5514699656d7937a80efb7e4bc9581f2 (patch) | |
tree | d10572fab28e0527866460a2ee6c20082537a9d0 /intern/smoke | |
parent | 9e1b2d0cdb37562c5161a187972201888029189b (diff) |
smoke: fix fft not working
Diffstat (limited to 'intern/smoke')
-rw-r--r-- | intern/smoke/intern/WTURBULENCE.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/smoke/intern/WTURBULENCE.cpp b/intern/smoke/intern/WTURBULENCE.cpp index 6ce29e2c8cd..06d8d84e821 100644 --- a/intern/smoke/intern/WTURBULENCE.cpp +++ b/intern/smoke/intern/WTURBULENCE.cpp @@ -176,13 +176,13 @@ WTURBULENCE::~WTURBULENCE() { ////////////////////////////////////////////////////////////////////// // Change noise type // -// type (1<<1) = wavelet / 2 -// type (1<<2) = FFT / 4 -// type (1<<3) = curl / 8 +// type (1<<0) = wavelet / 2 +// type (1<<1) = FFT / 4 +// type (1<<2) = curl / 8 ////////////////////////////////////////////////////////////////////// void WTURBULENCE::setNoise(int type) { - if(type == 4) // FFT + if(type == (1<<1)) // FFT { // needs fft #if FFTW3==1 @@ -190,7 +190,7 @@ void WTURBULENCE::setNoise(int type) generatTile_FFT(_noiseTile, noiseTileFilename); #endif } - else if(type == 8) // curl + else if(type == (1<<2)) // curl { // TODO: not supported yet } |