[Bf-blender-cvs] [5dd48c50f05] master: Cleanup: Set but unused variable
Sergey Sharybin
noreply at git.blender.org
Thu Sep 29 10:17:12 CEST 2022
Commit: 5dd48c50f05261701956b58dcbd3ff4f0c3cc5d5
Author: Sergey Sharybin
Date: Thu Sep 29 09:52:00 2022 +0200
Branches: master
https://developer.blender.org/rB5dd48c50f05261701956b58dcbd3ff4f0c3cc5d5
Cleanup: Set but unused variable
===================================================================
M source/blender/editors/sculpt_paint/sculpt_automasking.cc
===================================================================
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);
More information about the Bf-blender-cvs
mailing list