From 22a317347ffbba51628c717ee776a32d3f941ec1 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Mon, 13 Jan 2020 21:40:59 +0100 Subject: [PATCH] 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 --- source/blender/blenkernel/intern/pbvh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c index 01612ded396..ec520e188f1 100644 --- a/source/blender/blenkernel/intern/pbvh.c +++ b/source/blender/blenkernel/intern/pbvh.c @@ -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;