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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-07-01 10:32:12 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-01 10:33:52 +0300
commit95a1e9990946e8ea300e157f2dce2e03c075c44c (patch)
treedd41ae035a39185195c98d15f2713288aa280723 /source/blender/blenkernel/intern/particle_system.c
parenta77edab3209a99c7c8f8294d64d25c994cb67f44 (diff)
Particles: Code cleanup, whitespace
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 3a19ca7304c..7aa5f1eb750 100644
--- a/source/blender/blenkernel/intern/particle_system.c
+++ b/source/blender/blenkernel/intern/particle_system.c
@@ -555,6 +555,7 @@ void initialize_particle(ParticleSimulationData *sim, ParticleData *pa)
/* usage other than straight after distribute has to handle this index by itself - jahka*/
//pa->num_dmcache = DMCACHE_NOTFOUND; /* assume we don't have a derived mesh face */
}
+
static void initialize_all_particles(ParticleSimulationData *sim)
{
ParticleSystem *psys = sim->psys;
@@ -609,8 +610,9 @@ static void free_unexisting_particles(ParticleSimulationData *sim)
if (psys->particles->boid) {
BoidParticle *newboids = MEM_callocN(psys->totpart * sizeof(BoidParticle), "boid particles");
- LOOP_PARTICLES
+ LOOP_PARTICLES {
pa->boid = newboids++;
+ }
}
}