Fix T73094: Check all vertices when recalculating the mask flags

When a node was partially/fully hidden, this was causing the mask flags
to update incorrectly because it was not checking all vertices, so they
were assigned the fully_masked state and not updating in the transform
tool and mesh filter.

Reviewed By: jbakker

Maniphest Tasks: T73094

Differential Revision: https://developer.blender.org/D6573
This commit is contained in:
Pablo Dobarro 2020-01-13 21:40:59 +01:00
parent 22f5edcf45
commit 22a317347f
Notes: blender-bot 2023-02-14 08:24:03 +01:00
Referenced by issue #73094, Sculpt-mode bug: using mask-tool with hide-function causes mesh to glitch
1 changed files with 1 additions and 1 deletions

View File

@ -1120,7 +1120,7 @@ static void pbvh_update_mask_redraw_task_cb(void *__restrict userdata,
if (node->flag & PBVH_Leaf) {
PBVHVertexIter vd;
BKE_pbvh_vertex_iter_begin(bvh, node, vd, PBVH_ITER_UNIQUE)
BKE_pbvh_vertex_iter_begin(bvh, node, vd, PBVH_ITER_ALL)
{
if (vd.mask && *vd.mask < 1.0f) {
has_unmasked = true;