Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-11-09 15:10:13 +0300
committerJacques Lucke <jacques@blender.org>2021-11-09 15:10:13 +0300
commit09f1be53d88d1c3e342e8bfaab5136045b263ae1 (patch)
tree0adaadd5436bc8e13f9b6255e3d390a46d1c26d1
parentde8e13036ba43dfb515293140079d9f0b689d473 (diff)
Fix T92950: spreadsheet shows 0 instances when there are instances
Fix found by @erik85.
-rw-r--r--source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc2
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));
}