[Bf-blender-cvs] [e74535df087] master: Cleanup: shadow warning

Campbell Barton noreply at git.blender.org
Wed Apr 15 05:06:27 CEST 2020


Commit: e74535df0871f27162517821ff3a507084849e03
Author: Campbell Barton
Date:   Wed Apr 15 13:03:58 2020 +1000
Branches: master
https://developer.blender.org/rBe74535df0871f27162517821ff3a507084849e03

Cleanup: shadow warning

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_filter_mesh.c

===================================================================

diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
index ac307df34fd..4f22ad6a9b0 100644
--- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
+++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.c
@@ -578,7 +578,6 @@ static int sculpt_mesh_filter_invoke(bContext *C, wmOperator *op, const wmEvent
   ss->filter_cache->enabled_axis[2] = deform_axis & MESH_FILTER_DEFORM_Z;
 
   if (RNA_enum_get(op->ptr, "type") == MESH_FILTER_RELAX) {
-    const int totvert = SCULPT_vertex_count_get(ss);
     ss->filter_cache->automask = MEM_mallocN(totvert * sizeof(float),
                                              "Relax filter edge automask");
     for (int i = 0; i < totvert; i++) {



More information about the Bf-blender-cvs mailing list