Fix #116024: Face set unhide crash for masked type #116028

Merged
Pratik Borhade merged 1 commits from PratikPB2123/blender:116024-hide-crash into main 2023-12-12 12:33:48 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ static void partialvis_update_mesh(Object &object,
if (action == VisAction::Show && mask.is_empty()) {
mesh_show_all(object, nodes);
}
else {
else if (!mask.is_empty()) {
vert_hide_update(object, nodes, [&](const Span<int> verts, MutableSpan<bool> hide) {
for (const int i : verts.index_range()) {
if (mask[verts[i]] > 0.5f) {