Fix: Crash calculating edges of empty mesh
At some point (Fill Curve node in my case) it is possible to have empty task of edges. Simplest fix - ignore such tasks. In future this might be improved (see: #120224). Pull Request: https://projects.blender.org/blender/blender/pulls/120330
This commit is contained in:
committed by
Hans Goudey
parent
a419152589
commit
ebd04b5660
@@ -102,6 +102,9 @@ static void serialize_and_initialize_deduplicated_edges(MutableSpan<EdgeMap> edg
|
||||
|
||||
threading::parallel_for_each(edge_maps, [&](EdgeMap &edge_map) {
|
||||
const int task_index = &edge_map - edge_maps.data();
|
||||
if (edge_offsets[task_index].is_empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
int new_edge_index = edge_offsets[task_index].first();
|
||||
for (EdgeMap::MutableItem item : edge_map.items()) {
|
||||
|
||||
Reference in New Issue
Block a user