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>2018-08-14 03:14:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-08-14 03:14:05 +0300
commitc29c426925311eeb79e3988609e914e72b61013b (patch)
tree3af461685471f986b97bb9faa72c51ef48b522f4 /source/blender/blenkernel/intern/particle_system.c
parent98f4a8eedf218c240adbac586fed02cfe51e01a9 (diff)
Cleanup: use braces w/ particle loop macros
Diffstat (limited to 'source/blender/blenkernel/intern/particle_system.c')
-rw-r--r--source/blender/blenkernel/intern/particle_system.c12
1 files changed, 8 insertions, 4 deletions
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;
+ }
}
}