Revision: 22323
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22323
Author:   genscher
Date:     2009-08-09 17:04:31 +0200 (Sun, 09 Aug 2009)

Log Message:
-----------
smoke: fix fft not working

Modified Paths:
--------------
    branches/blender2.5/blender/intern/smoke/intern/WTURBULENCE.cpp

Modified: branches/blender2.5/blender/intern/smoke/intern/WTURBULENCE.cpp
===================================================================
--- branches/blender2.5/blender/intern/smoke/intern/WTURBULENCE.cpp     
2009-08-09 14:13:33 UTC (rev 22322)
+++ branches/blender2.5/blender/intern/smoke/intern/WTURBULENCE.cpp     
2009-08-09 15:04:31 UTC (rev 22323)
@@ -176,13 +176,13 @@
 //////////////////////////////////////////////////////////////////////
 // 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 @@
                generatTile_FFT(_noiseTile, noiseTileFilename);
                #endif
        }
-       else if(type == 8) // curl
+       else if(type == (1<<2)) // curl
        {
                // TODO: not supported yet
        }


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to