Fix #119241: setting edge selection does not work correctly

This was likely a typo in bd4c310a19.

Pull Request: https://projects.blender.org/blender/blender/pulls/119413
This commit is contained in:
Jacques Lucke 2024-03-13 13:25:23 +01:00
parent 48aec82426
commit 297157e1c7
1 changed files with 2 additions and 2 deletions

View File

@ -694,7 +694,7 @@ void mesh_select_edge_flush(Mesh &mesh)
const VArray<bool> hide_vert = *attributes.lookup_or_default<bool>(
".hide_vert", AttrDomain::Point, false);
array_utils::copy(
*attributes.lookup_or_default<bool>(".select_vert", AttrDomain::Point, false),
*attributes.lookup_or_default<bool>(".select_edge", AttrDomain::Point, false),
IndexMask::from_bools(hide_vert, memory).complement(hide_vert.index_range(), memory),
select_vert.span);
}
@ -703,7 +703,7 @@ void mesh_select_edge_flush(Mesh &mesh)
const VArray<bool> hide_poly = *attributes.lookup_or_default<bool>(
".hide_poly", AttrDomain::Face, false);
array_utils::copy(
*attributes.lookup_or_default<bool>(".select_vert", AttrDomain::Face, false),
*attributes.lookup_or_default<bool>(".select_edge", AttrDomain::Face, false),
IndexMask::from_bools(hide_poly, memory).complement(hide_poly.index_range(), memory),
select_poly.span);
}