fix for more errors with switch missing break
authorCampbell Barton <ideasman42@gmail.com>
Sat, 13 Jul 2013 14:44:04 +0000 (14:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 13 Jul 2013 14:44:04 +0000 (14:44 +0000)
- 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
source/blender/editors/space_buttons/space_buttons.c

index dfffb7c795e3e805fd45cdfa14ea42c7a624b918..cf761bf3dab9300df73093b50a6e387f7ccac694 100644 (file)
@@ -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:
                {
index b01f653837cffd839fd47443f08313332fd73785..72d7bcd43ce71e8ae667703e3225b2ff38e76481 100644 (file)
@@ -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: