From 4a39a4a92afe6d516e6e94ca4f81349aefbb1cc7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 13 Jul 2013 14:44:04 +0000 Subject: [PATCH] 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 + source/blender/editors/space_buttons/space_buttons.c | 1 + 2 files changed, 2 insertions(+) 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: { diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index b01f653837c..72d7bcd43ce 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -292,6 +292,7 @@ static void buttons_area_listener(bScreen *UNUSED(sc), ScrArea *sa, wmNotifier * buttons_area_redraw(sa, BCONTEXT_OBJECT); buttons_area_redraw(sa, BCONTEXT_DATA); buttons_area_redraw(sa, BCONTEXT_PHYSICS); + break; case ND_SHADING: case ND_SHADING_DRAW: case ND_SHADING_LINKS: