From 5dd48c50f05261701956b58dcbd3ff4f0c3cc5d5 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 29 Sep 2022 09:52:00 +0200 Subject: Cleanup: Set but unused variable --- source/blender/editors/sculpt_paint/sculpt_automasking.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/sculpt_automasking.cc b/source/blender/editors/sculpt_paint/sculpt_automasking.cc index a95d499c0da..a5b5519c6ae 100644 --- a/source/blender/editors/sculpt_paint/sculpt_automasking.cc +++ b/source/blender/editors/sculpt_paint/sculpt_automasking.cc @@ -306,7 +306,7 @@ static void sculpt_calc_blurred_cavity(SculptSession *ss, float3 sno2(0.0f); float3 sco1(0.0f); float3 sco2(0.0f); - float len1_sum = 0.0f, len2_sum = 0.0f; + float len1_sum = 0.0f; int sco1_len = 0, sco2_len = 0; /* Steps starts at 1, but API and user interface @@ -349,7 +349,6 @@ static void sculpt_calc_blurred_cavity(SculptSession *ss, if (blurvert.depth < steps) { sco2 += co; sno2 += no; - len2_sum += centdist; sco2_len++; } @@ -409,7 +408,6 @@ static void sculpt_calc_blurred_cavity(SculptSession *ss, } else { sco2 /= (float)sco2_len; - len2_sum /= sco2_len; } normalize_v3(sno1); -- cgit v1.2.3