Fix boundary edges detection ignoring Face Set visibility

If one of the faces connected to a vertex is hidden in the face sets, we
can assume that the vertex is part of a boundary edge, so it should be
cosidered like that in all automasking and edge detection functions.

Reviewed By: jbakker

Differential Revision: https://developer.blender.org/D7126
This commit is contained in:
Pablo Dobarro 2020-03-12 13:37:20 +01:00
parent 69eaa19340
commit fa823f0af8
Notes: blender-bot 2023-05-22 12:40:41 +02:00
Referenced by issue #81950, Grease Pencil Ignores 'Stroke Placement: Stroke'
Referenced by issue #74698, Grease Pencil objects not reacting to lights
Referenced by issue #74705, Grease Pencil Stroke Depth Order Glitch
1 changed files with 4 additions and 0 deletions

View File

@ -625,6 +625,10 @@ static bool sculpt_vertex_is_boundary(SculptSession *ss, const int index)
return false;
}
if (!SCULPT_vertex_all_face_sets_visible_get(ss, index)) {
return false;
}
for (int i = 0; i < vert_map->count; i++) {
const MPoly *p = &ss->mpoly[vert_map->indices[i]];
unsigned f_adj_v[2];