Fix #135333: Node tools crash with empty mesh input
The implicit sharing info can actually be null when there is no shared array data.
This commit is contained in:
@@ -184,6 +184,9 @@ class MeshState {
|
||||
}
|
||||
mesh.attributes().foreach_attribute([&](const bke::AttributeIter &iter) {
|
||||
const bke::GAttributeReader attribute = iter.get();
|
||||
if (attribute.varray.size() == 0) {
|
||||
return;
|
||||
}
|
||||
this->freeze_shared_state(*attribute.sharing_info);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user