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:
authorNils Thuerey <nils@thuerey.de>2006-08-22 15:18:00 +0400
committerNils Thuerey <nils@thuerey.de>2006-08-22 15:18:00 +0400
commitf21f3cb290e221e4b4610e43c17e9702b43a1cb5 (patch)
treee168253c66d3cc03dd83d3974168306bd5cd21ab /source/blender/blenkernel/intern/effect.c
parent91c9917bc00c196ce03d3662b06443c4539bc87e (diff)
- modified patch #4681, for scons compiling
of the fluidsim can now be disabled with the flag: BF_NO_ELBEEM='true', e.g. for irix systems. (The number of ifdefs from the original patch was reduced, and the defines are now only necessary when elbeem is switched off.) - particle generation option is available again
Diffstat (limited to 'source/blender/blenkernel/intern/effect.c')
-rw-r--r--source/blender/blenkernel/intern/effect.c22
1 files changed, 13 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/effect.c b/source/blender/blenkernel/intern/effect.c
index d18620283e4..abadc799e92 100644
--- a/source/blender/blenkernel/intern/effect.c
+++ b/source/blender/blenkernel/intern/effect.c
@@ -51,11 +51,6 @@
#include "DNA_object_force.h"
#include "DNA_texture_types.h"
#include "DNA_scene_types.h"
-// FSPARTICLE
-#include "DNA_object_fluidsim.h"
-#include "LBM_fluidsim.h"
-#include <zlib.h>
-#include <string.h>
#include "BLI_arithb.h"
#include "BLI_blenlib.h"
@@ -87,9 +82,17 @@
#include "BKE_utildefines.h"
#include "PIL_time.h"
-#include "elbeem.h"
#include "RE_render_ext.h"
+/* fluid sim particle import */
+#ifndef DISABLE_ELBEEM
+#include "DNA_object_fluidsim.h"
+#include "LBM_fluidsim.h"
+#include "elbeem.h"
+#include <zlib.h>
+#include <string.h>
+#endif // DISABLE_ELBEEM
+
/* temporal struct, used for reading return of mesh_get_mapped_verts_nors() */
typedef struct VeNoCo {
float co[3], no[3];
@@ -1682,7 +1685,8 @@ void build_particle_system(Object *ob)
printf("build particles\n");
- // FSPARTICLE all own created...
+ /* fluid sim particle import handling, actual loading */
+ #ifndef DISABLE_ELBEEM
if( (1) && (ob->fluidsimFlag & OB_FLUIDSIM_ENABLE) &&
(ob->fluidsimSettings) &&
(ob->fluidsimSettings->type == OB_FLUIDSIM_PARTICLE)) {
@@ -1775,8 +1779,8 @@ void build_particle_system(Object *ob)
snprintf(debugStrBuffer,256,"readFsPartData::done - particles:%d, active:%d, file:%d, mask:%d \n", paf->totpart,activeParts,fileParts,readMask);
elbeemDebugOut(debugStrBuffer);
return;
- }
-
+ } // fluid sim particles done
+ #endif // DISABLE_ELBEEM
if(paf->end < paf->sta) return;