diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-04 07:24:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-04 07:40:03 +0300 |
commit | 3e63c604e395f00d2ee81fa48ab1bad29c95a4e7 (patch) | |
tree | d54f49fe39e668e38505b83107aa6f7d5de76e3f /source/blender/editors/sculpt_paint/paint_image_2d.c | |
parent | ef629e0d504ea6b53cf490f0f084d5a0b587bf6b (diff) |
Partial revert of warning cleanup
These warnings are false-positives
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image_2d.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_image_2d.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_2d.c b/source/blender/editors/sculpt_paint/paint_image_2d.c index 3113f031277..c5a066e9b14 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d.c +++ b/source/blender/editors/sculpt_paint/paint_image_2d.c @@ -1591,7 +1591,7 @@ void paint_2d_gradient_fill( if (do_float) { for (x_px = 0; x_px < ibuf->x; x_px++) { for (y_px = 0; y_px < ibuf->y; y_px++) { - float f = 0.0f; + float f; float p[2] = {x_px - image_init[0], y_px - image_init[1]}; switch (br->gradient_fill_mode) { @@ -1601,6 +1601,7 @@ void paint_2d_gradient_fill( break; } case BRUSH_GRADIENT_RADIAL: + default: { f = len_v2(p) / line_len; break; @@ -1619,7 +1620,7 @@ void paint_2d_gradient_fill( else { for (x_px = 0; x_px < ibuf->x; x_px++) { for (y_px = 0; y_px < ibuf->y; y_px++) { - float f = 0.0f; + float f; float p[2] = {x_px - image_init[0], y_px - image_init[1]}; switch (br->gradient_fill_mode) { @@ -1629,6 +1630,7 @@ void paint_2d_gradient_fill( break; } case BRUSH_GRADIENT_RADIAL: + default: { f = len_v2(p) / line_len; break; |