From c7b247a118e302a3afc6473797e53b6af28b69e2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 18:30:50 +1000 Subject: Cleanup: replace static_casts with functional casts for numeric types --- source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc') diff --git a/source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc b/source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc index dc45a7ec51c..d3c61508726 100644 --- a/source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc +++ b/source/blender/editors/sculpt_paint/paint_image_2d_curve_mask.cc @@ -70,11 +70,11 @@ static void update_curve_mask(CurveMaskCache *curve_mask_cache, for (int y = 0; y < diameter; y++) { for (int x = 0; x < diameter; x++, m++) { float pixel_xy[2]; - pixel_xy[0] = static_cast(x) + aa_offset; + pixel_xy[0] = float(x) + aa_offset; float total_weight = 0; for (int i = 0; i < aa_samples; i++) { - pixel_xy[1] = static_cast(y) + aa_offset; + pixel_xy[1] = float(y) + aa_offset; for (int j = 0; j < aa_samples; j++) { const float len = len_v2v2(pixel_xy, bpos); const int sample_index = min_ii((len / clamped_radius) * CurveSamplesBaseLen, -- cgit v1.2.3