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:
-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
}