Fix neighbor connectivy with hidden edges

This commit is contained in:
Pablo Dobarro 2021-04-18 19:00:02 +02:00
parent a0b5fd9cb6
commit 18a86af416
1 changed files with 3 additions and 0 deletions

View File

@ -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) {