diff options
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_stroke.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_stroke.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_stroke.c b/source/blender/editors/sculpt_paint/paint_stroke.c index 1705e36363e..c0bf89107e0 100644 --- a/source/blender/editors/sculpt_paint/paint_stroke.c +++ b/source/blender/editors/sculpt_paint/paint_stroke.c @@ -792,7 +792,7 @@ static int paint_space_stroke(bContext *C, Paint *paint = BKE_paint_get_active_from_context(C); ePaintMode mode = BKE_paintmode_get_active_from_context(C); Brush *brush = BKE_paint_brush(paint); - int cnt = 0; + int count = 0; const bool use_scene_spacing = paint_stroke_use_scene_spacing(brush, mode); float d_world_space_position[3] = {0.0f}; @@ -855,14 +855,14 @@ static int paint_space_stroke(bContext *C, pressure = stroke->last_pressure; dpressure = final_pressure - stroke->last_pressure; - cnt++; + count++; } else { break; } } - return cnt; + return count; } /**** Public API ****/ |