Fix topology automasking when starting from a boundary vertex

When starting automaking from a boundary vertex it was only updating the automasking factor in connected boundary vertices. This also fixes other similar functions like mask expand or dynamic mesh preview.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D5812
This commit is contained in:
Pablo Dobarro 2019-09-16 14:53:39 +02:00
parent 58214ab52a
commit 54b690897e
1 changed files with 2 additions and 4 deletions

View File

@ -296,10 +296,8 @@ static void sculpt_vertex_neighbors_get_faces(SculptSession *ss,
if (poly_get_adj_loops_from_vert(p, ss->mloop, (int)index, f_adj_v) != -1) {
int j;
for (j = 0; j < ARRAY_SIZE(f_adj_v); j += 1) {
if (vert_map->count != 2 || ss->pmap[f_adj_v[j]].count <= 2) {
if (f_adj_v[j] != (int)index) {
sculpt_vertex_neighbor_add(iter, f_adj_v[j]);
}
if (f_adj_v[j] != (int)index) {
sculpt_vertex_neighbor_add(iter, f_adj_v[j]);
}
}
}