[Bf-blender-cvs] [95a1e99] master: Particles: Code cleanup, whitespace
Sergey Sharybin
noreply at git.blender.org
Wed Jul 1 09:34:09 CEST 2015
Commit: 95a1e9990946e8ea300e157f2dce2e03c075c44c
Author: Sergey Sharybin
Date: Wed Jul 1 09:32:12 2015 +0200
Branches: master
https://developer.blender.org/rB95a1e9990946e8ea300e157f2dce2e03c075c44c
Particles: Code cleanup, whitespace
===================================================================
M source/blender/blenkernel/intern/particle_system.c
===================================================================
diff --git a/source/blender/blenkernel/intern/particle_system.c b/source/blender/blenkernel/intern/particle_system.c
index 3a19ca7..7aa5f1e 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++;
+ }
}
}
More information about the Bf-blender-cvs
mailing list