From 4a39a4a92afe6d516e6e94ca4f81349aefbb1cc7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Jul 2013 14:44:04 +0000 Subject: fix for more errors with switch missing break - boids random option was falling through to average. - (NC_OBJECT | ND_DRAW) notifier was falling through to ND_SHADING button preview updates. --- source/blender/blenkernel/intern/boids.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/blenkernel') diff --git a/source/blender/blenkernel/intern/boids.c b/source/blender/blenkernel/intern/boids.c index dfffb7c795e..cf761bf3dab 100644 --- a/source/blender/blenkernel/intern/boids.c +++ b/source/blender/blenkernel/intern/boids.c @@ -981,6 +981,7 @@ void boid_brain(BoidBrainData *bbd, int p, ParticleData *pa) rule = BLI_findlink(&state->rules, rand % BLI_countlist(&state->rules)); apply_boid_rule(bbd, rule, &val, pa, -1.0); + break; } case eBoidRulesetType_Average: { -- cgit v1.2.3