Cleanup: Remove unused variables

Pull Request: https://projects.blender.org/blender/blender/pulls/124667
This commit is contained in:
Sean Kim
2024-07-13 21:57:31 +02:00
committed by Sean Kim
parent e4c72ef30c
commit 06ba62f278

View File

@@ -233,12 +233,10 @@ static bool get_normal_boundary(const float3 &current_position,
}
float3 normal(0.0f, 0.0f, 0.0f);
int i = 0;
for (BMVert *vert : neighbors) {
const float3 neighbor_pos = vert->co;
const float3 to_neighbor = neighbor_pos - current_position;
normal += math::normalize(to_neighbor);
i++;
}
r_new_normal = math::normalize(normal);
@@ -253,10 +251,8 @@ static bool get_average_position(const Span<BMVert *> neighbors, float3 &r_new_p
}
float3 average_position(0.0f, 0.0f, 0.0f);
int i = 0;
for (BMVert *vert : neighbors) {
average_position += vert->co;
i++;
}
average_position *= math::rcp(float(neighbors.size()));