diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-16 15:53:39 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2019-09-17 15:52:48 +0300 |
commit | 54b690897ecd95605b97b2c5eb970a95c27ce33c (patch) | |
tree | 488102601fbbc91864f2c4d57575efe0667da0c4 | |
parent | 58214ab52a62fc046ad4bfd9691953fb99cfea3e (diff) |
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
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index d912f04479d..83b9abe5f3e 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -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]); } } } |