Fix T99961: crash when spreadsheet shows volume grids

This commit is contained in:
Jacques Lucke 2022-07-25 11:22:14 +02:00
parent cacdea7f4a
commit 72fb92ded8
Notes: blender-bot 2023-02-14 08:08:54 +01:00
Referenced by issue #99961, Geometry Nodes: Crash witch spreadsheet set to volume grid
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ static void add_fields_as_extra_columns(SpaceSpreadsheet *sspreadsheet,
std::make_unique<GeometryComponentCacheKey>(component));
const eAttrDomain domain = (eAttrDomain)sspreadsheet->attribute_domain;
const int domain_num = component.attributes()->domain_size(domain);
const int domain_num = component.attribute_domain_size(domain);
for (const auto item : fields_to_show.items()) {
const StringRef name = item.key;
const GField &field = item.value;