Fix T85230: Face Set Boundary automasking not working with dyntopo

Dyntopo does not have Face Sets implemented yet, so the entire mesh is
considered a single Face Set. In that case, the check unique face set
function should always return true.

Reviewed By: JacquesLucke

Maniphest Tasks: T85230

Differential Revision: https://developer.blender.org/D10259
This commit is contained in:
Pablo Dobarro 2021-01-30 16:27:08 +01:00
parent 0f238c5bcb
commit ebd2aa789e
Notes: blender-bot 2023-02-14 08:10:06 +01:00
Referenced by issue #85230, Face set boundary automasking and dyntopo break brushes
Referenced by issue #82030, Crash when rendering animation with Eevee, motion blur and modifiers
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ bool SCULPT_vertex_has_unique_face_set(SculptSession *ss, int index)
return sculpt_check_unique_face_set_in_base_mesh(ss, index);
}
case PBVH_BMESH:
return false;
return true;
case PBVH_GRIDS: {
const CCGKey *key = BKE_pbvh_get_grid_key(ss->pbvh);
const int grid_index = index / key->grid_area;