From 0e3475a0ec9f2ccaa56eb8dd2a7358a125750805 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Tue, 11 May 2021 23:31:43 +0200 Subject: Fix wrong loop count in Sculpt Expand code Introduced when refactoring the function in 8815e3e3303933e2cc662f15fc9d11ca68a47d16 --- source/blender/editors/sculpt_paint/sculpt_expand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint/sculpt_expand.c') diff --git a/source/blender/editors/sculpt_paint/sculpt_expand.c b/source/blender/editors/sculpt_paint/sculpt_expand.c index e6259ebecb7..2de7d5d72cc 100644 --- a/source/blender/editors/sculpt_paint/sculpt_expand.c +++ b/source/blender/editors/sculpt_paint/sculpt_expand.c @@ -1898,7 +1898,7 @@ static void sculpt_expand_delete_face_set_id(int *r_face_sets, Mesh *mesh, const int delete_id) { - const int totface = ss->totvert; + const int totface = ss->totfaces; MeshElemMap *pmap = ss->pmap; /* Check that all the face sets IDs in the mesh are not equal to `delete_id` -- cgit v1.2.3