- last bugfix caused problems when using the makefile, this should work as well now
authorNils Thuerey <nils@thuerey.de>
Thu, 1 Dec 2005 16:10:38 +0000 (16:10 +0000)
committerNils Thuerey <nils@thuerey.de>
Thu, 1 Dec 2005 16:10:38 +0000 (16:10 +0000)
intern/elbeem/SConscript
intern/elbeem/intern/blenderdummy.cpp

index d0ccff153b45cedd354dc442061efd8958c154b6..5d30b58a98230ac8a14332934360deeb08912632 100644 (file)
@@ -11,6 +11,7 @@ if use_fluidsim=='false':
        # print "El'Beem Fluid Simulation Disabled..." # debug
        elbeem_env.Append (CPPPATH = user_options_dict['PNG_INCLUDE'])
        elbeem_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
+       elbeem_env.Append(CPPDEFINES= 'ELBEEM_DUMMIES');
        # dummy interface build
        Sources = [ 
                "intern/utilities.cpp",
index e5f576b55380cf8987e90e28a7a9e64219fb1706..3111c9359dd6264b509e94420cf9f86d0413d023 100644 (file)
@@ -9,6 +9,8 @@
  *
  *****************************************************************************/
  
+#ifdef ELBEEM_DUMMIES
+
 #include <stdlib.h>
 #include "ntl_vector3dim.h"
 
@@ -32,3 +34,5 @@ void calculateMemreqEstimate( int resx,int resy,int resz, int refine,
        *reqret =  0.0; // dummy
 }
 
+#endif // ELBEEM_DUMMIES
+