[Bf-blender-cvs] [18a86af4162] sculpt-dev: Fix neighbor connectivy with hidden edges

Pablo Dobarro noreply at git.blender.org
Sun Apr 18 19:10:34 CEST 2021


Commit: 18a86af4162dded0fd961a9f965bf5c5a9e6d5bf
Author: Pablo Dobarro
Date:   Sun Apr 18 19:00:02 2021 +0200
Branches: sculpt-dev
https://developer.blender.org/rB18a86af4162dded0fd961a9f965bf5c5a9e6d5bf

Fix neighbor connectivy with hidden edges

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 54d55d9208b..d4b5fa3bb9d 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -816,6 +816,9 @@ static void sculpt_vertex_neighbors_get_faces(SculptSession *ss,
   iter->neighbors = iter->neighbors_fixed;
 
   for (int i = 0; i < ss->pmap[index].count; i++) {
+    if (ss->face_sets[vert_map->indices[i]] <= 0) {
+      continue;
+    }
     const MPoly *p = &ss->mpoly[vert_map->indices[i]];
     uint f_adj_v[2];
     if (poly_get_adj_loops_from_vert(p, ss->mloop, index, f_adj_v) != -1) {



More information about the Bf-blender-cvs mailing list