diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-09 15:10:13 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-09 15:10:13 +0300 |
commit | 09f1be53d88d1c3e342e8bfaab5136045b263ae1 (patch) | |
tree | 0adaadd5436bc8e13f9b6255e3d390a46d1c26d1 /source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc | |
parent | de8e13036ba43dfb515293140079d9f0b689d473 (diff) |
Fix T92950: spreadsheet shows 0 instances when there are instances
Fix found by @erik85.
Diffstat (limited to 'source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc')
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc b/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc index 6a04440afc7..25a9d0f0213 100644 --- a/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc +++ b/source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc @@ -200,7 +200,7 @@ void DatasetRegionDrawer::draw_dataset_row(const int indentation, BLI_str_format_attribute_domain_size( element_count, element_count_from_instances(draw_context.current_geometry_set)); } - if (component == GEO_COMPONENT_TYPE_VOLUME) { + else if (component == GEO_COMPONENT_TYPE_VOLUME) { BLI_str_format_attribute_domain_size( element_count, element_count_from_volume(draw_context.current_geometry_set)); } |