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:
authorCampbell Barton <ideasman42@gmail.com>2010-11-02 16:12:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-02 16:12:30 +0300
commit369a5cc29e80d0ac30f9db444f2c0f9c1da32e01 (patch)
treee6510d985b37ef027e5614da8b5479a2d95c7a92 /source/blender/modifiers
parent5d7ed88f17c7a253c81ee48c147149d73dd88e6a (diff)
fix for compiling with the c90 standard, support for non-static variable initializers is a c99 feature.
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_explode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_explode.c b/source/blender/modifiers/intern/MOD_explode.c
index dd2c4b6efb6..9e93557968d 100644
--- a/source/blender/modifiers/intern/MOD_explode.c
+++ b/source/blender/modifiers/intern/MOD_explode.c
@@ -663,7 +663,7 @@ static DerivedMesh * explodeMesh(ExplodeModifierData *emd,
DerivedMesh *explode, *dm=to_explode;
MFace *mf=0, *mface;
ParticleSettings *part=psmd->psys->part;
- ParticleSimulationData sim = {scene, ob, psmd->psys, psmd};
+ ParticleSimulationData sim= {0};
ParticleData *pa=NULL, *pars=psmd->psys->particles;
ParticleKey state;
EdgeHash *vertpahash;
@@ -680,6 +680,11 @@ static DerivedMesh * explodeMesh(ExplodeModifierData *emd,
mface= dm->getFaceArray(dm);
totpart= psmd->psys->totpart;
+ sim.scene= scene;
+ sim.ob= ob;
+ sim.psys= psmd->psys;
+ sim.psmd= psmd;
+
timestep= psys_get_timestep(&sim);
//if(part->flag & PART_GLOB_TIME)