svn merge -r36840:36890 https://svn.blender.org/svnroot/bf-blender/trunk/blender
[blender.git] / source / blender / editors / space_view3d / drawobject.c
index 076a8ceb52ed3253c44b66b2f81ee0f3b36b5a62..28a267ff0abcc0f13dd0f152f2ec8ca8cd66115b 100644 (file)
@@ -3914,6 +3914,8 @@ static void draw_new_particle_system(Scene *scene, View3D *v3d, RegionView3D *rv
                                                case PART_DRAW_COL_ACC:
                                                        intensity = len_v3v3(pa->state.vel, pa->prev_state.vel)/((pa->state.time-pa->prev_state.time)*part->color_vec_max);
                                                        break;
+                                               default:
+                                                       intensity= 1.0f; /* should never happen */
                                        }
                                        CLAMP(intensity, 0.f, 1.f);
                                        weight_to_rgb(intensity, &ma_r, &ma_g, &ma_b);