diff --git a/source/blender/src/editmesh_tools.c b/source/blender/src/editmesh_tools.c index e3bdbe22c28..c5c3a1e14e1 100644 --- a/source/blender/src/editmesh_tools.c +++ b/source/blender/src/editmesh_tools.c @@ -5912,13 +5912,13 @@ int collapseFaces(int uvmerge){ CollectedFace *currface; Collection *facecollection; - allcollections.first = 0; - allcollections.last = 0; - int groupcount; int vcount,totFaces,mergecount; float avgcount[3]; + allcollections.first = 0; + allcollections.last = 0; + mergecount = 0; build_facecollection(&allcollections); groupcount = BLI_countlist(&allcollections);