Fix: crash in mesh topology nodes

This was broken in rBd6c9cd445cb41480b40.
This commit is contained in:
Jacques Lucke 2023-01-27 12:40:08 +01:00
parent d5b026a16c
commit 79f70e48eb
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class CornersOfVertInput final : public bke::MeshFieldInput {
corner_of_vertex[selection_i] = corner_indices[sort_indices[index_in_sort_wrapped]];
}
else {
corner_of_vertex[selection_i] = corner_indices[index_in_sort_wrapped];
corner_of_vertex[selection_i] = corners[index_in_sort_wrapped];
}
}
});

View File

@ -124,7 +124,7 @@ class EdgesOfVertInput final : public bke::MeshFieldInput {
edge_of_vertex[selection_i] = edge_indices[sort_indices[index_in_sort_wrapped]];
}
else {
edge_of_vertex[selection_i] = edge_indices[index_in_sort_wrapped];
edge_of_vertex[selection_i] = edges[index_in_sort_wrapped];
}
}
});