Sculpt: Fix T103923: Expand face sets now taking visibility into account

The code was never ported from the old system of encoding visibility
as negative face set values.
This commit is contained in:
Joseph Eagar 2023-01-19 18:04:34 -08:00
parent 4fa6ce0973
commit da21e035d3
Notes: blender-bot 2023-02-13 13:34:46 +01:00
Referenced by issue #103923, Regression: Face Set Expand on open boundary will fill hidden geometry
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ static bool sculpt_expand_state_get(SculptSession *ss,
*/
static bool sculpt_expand_face_state_get(SculptSession *ss, ExpandCache *expand_cache, const int f)
{
if (expand_cache->original_face_sets[f] <= 0) {
if (ss->hide_poly && ss->hide_poly[f]) {
return false;
}