Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-09-29 10:52:00 +0300
committerSergey Sharybin <sergey@blender.org>2022-09-29 10:52:00 +0300
commit5dd48c50f05261701956b58dcbd3ff4f0c3cc5d5 (patch)
tree4ef8fbf183b65f26b82d7e5d37be607e06522f2f
parent46e0512d1ed20eefc74a0106a3a68fdfd7bdbc5a (diff)
Cleanup: Set but unused variable
-rw-r--r--source/blender/editors/sculpt_paint/sculpt_automasking.cc4
1 files changed, 1 insertions, 3 deletions
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);