diff options
author | Hans Goudey <h.goudey@me.com> | 2022-08-14 05:34:11 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-08-14 05:34:11 +0300 |
commit | 64f0c25a4655de44ef8ddc82fe2df7a101319f4a (patch) | |
tree | 5cd6e32bcd7e294e48fca0369c2f7f3cf41b8a51 /source | |
parent | b5e92c3dfe70f94556719594c6c1b457cda59768 (diff) |
Fix: Incorrect access of mesh hide layers
Mistake in 2480b55f216c31373a
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editface.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/blender/editors/mesh/editface.cc b/source/blender/editors/mesh/editface.cc index 0d988b9551f..c55d96bac55 100644 --- a/source/blender/editors/mesh/editface.cc +++ b/source/blender/editors/mesh/editface.cc @@ -530,15 +530,13 @@ bool paintvert_deselect_all_visible(Object *ob, int action, bool flush_flags) bke::AttributeAccessor attributes = bke::mesh_attributes(*me); const VArray<bool> hide_vert = attributes.lookup_or_default<bool>( ".hide_vert", ATTR_DOMAIN_POINT, false); - const VArray<bool> hide_poly = attributes.lookup_or_default<bool>( - ".hide_poly", ATTR_DOMAIN_FACE, false); if (action == SEL_TOGGLE) { action = SEL_SELECT; for (int i = 0; i < me->totvert; i++) { MVert *mvert = &me->mvert[i]; - if (!hide_poly[i] && mvert->flag & SELECT) { + if (!hide_vert[i] && mvert->flag & SELECT) { action = SEL_DESELECT; break; } @@ -603,13 +601,13 @@ void paintvert_select_ungrouped(Object *ob, bool extend, bool flush_flags) } bke::AttributeAccessor attributes = bke::mesh_attributes(*me); - const VArray<bool> hide_poly = attributes.lookup_or_default<bool>( - ".hide_poly", ATTR_DOMAIN_FACE, false); + const VArray<bool> hide_vert = attributes.lookup_or_default<bool>( + ".hide_vert", ATTR_DOMAIN_POINT, false); for (int i = 0; i < me->totvert; i++) { MVert *mv = &me->mvert[i]; MDeformVert *dv = &me->dvert[i]; - if (!hide_poly[i]) { + if (!hide_vert[i]) { if (dv->dw == nullptr) { /* if null weight then not grouped */ mv->flag |= SELECT; |