From c29c426925311eeb79e3988609e914e72b61013b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 14 Aug 2018 10:14:05 +1000 Subject: Cleanup: use braces w/ particle loop macros --- source/blender/blenkernel/intern/particle_system.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to '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 fd63285ea85..353c75d63c6 100644 --- a/source/blender/blenkernel/intern/particle_system.c +++ b/source/blender/blenkernel/intern/particle_system.c @@ -169,8 +169,9 @@ void psys_reset(ParticleSystem *psys, int mode) } else if (mode == PSYS_RESET_CACHE_MISS) { /* set all particles to be skipped */ - LOOP_PARTICLES + LOOP_PARTICLES { pa->flag |= PARS_NO_DISP; + } } /* reset children */ @@ -273,8 +274,9 @@ static void realloc_particles(ParticleSimulationData *sim, int new_totpart) psys->totpart=totpart; if (newboids) { - LOOP_PARTICLES + LOOP_PARTICLES { pa->boid = newboids++; + } } } @@ -4129,14 +4131,16 @@ void psys_check_boid_data(ParticleSystem *psys) if (!pa->boid) { bpa = MEM_callocN(psys->totpart * sizeof(BoidParticle), "Boid Data"); - LOOP_PARTICLES + LOOP_PARTICLES { pa->boid = bpa++; + } } } else if (pa->boid) { MEM_freeN(pa->boid); - LOOP_PARTICLES + LOOP_PARTICLES { pa->boid = NULL; + } } } -- cgit v1.2.3