diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-11-03 09:31:53 +0300 |
commit | fe8d5b81b09462d2344a50b32bfd2d8df5c6d886 (patch) | |
tree | 6f1df9a8387a95c7fca3b28ecf168f1cb06214ea /source/blender/blenkernel/intern/particle.c | |
parent | de8e066a1ca29fe58295ee6b12b735d023528681 (diff) |
use c90 compatible static initializers.
Diffstat (limited to 'source/blender/blenkernel/intern/particle.c')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index 624587338c9..65b898a2807 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -3221,7 +3221,12 @@ void psys_cache_edit_paths(Scene *scene, Object *ob, PTCacheEdit *edit, float cf edit->totcached = totpart; if(psys) { - ParticleSimulationData sim = {scene, ob, psys, psys_get_modifier(ob, psys), NULL}; + ParticleSimulationData sim= {0}; + sim.scene= scene; + sim.ob= ob; + sim.psys= psys; + sim.psmd= psys_get_modifier(ob, psys); + psys_cache_child_paths(&sim, cfra, 1); } |