[Bf-blender-cvs] [0e3475a0ec9] blender-v2.93-release: Fix wrong loop count in Sculpt Expand code

Pablo Dobarro noreply at git.blender.org
Tue May 11 23:35:21 CEST 2021


Commit: 0e3475a0ec9f2ccaa56eb8dd2a7358a125750805
Author: Pablo Dobarro
Date:   Tue May 11 23:31:43 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rB0e3475a0ec9f2ccaa56eb8dd2a7358a125750805

Fix wrong loop count in Sculpt Expand code

Introduced when refactoring the function in
8815e3e3303933e2cc662f15fc9d11ca68a47d16

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

M	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`



More information about the Bf-blender-cvs mailing list