Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Genrich <daniel.genrich@gmx.net>2009-08-09 19:04:31 +0400
committerDaniel Genrich <daniel.genrich@gmx.net>2009-08-09 19:04:31 +0400
commitb58083ea5514699656d7937a80efb7e4bc9581f2 (patch)
treed10572fab28e0527866460a2ee6c20082537a9d0
parent9e1b2d0cdb37562c5161a187972201888029189b (diff)
smoke: fix fft not working
-rw-r--r--intern/smoke/intern/WTURBULENCE.cpp10
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
}