[Bf-blender-cvs] [09f1be53d88] master: Fix T92950: spreadsheet shows 0 instances when there are instances

Jacques Lucke noreply at git.blender.org
Tue Nov 9 13:10:43 CET 2021


Commit: 09f1be53d88d1c3e342e8bfaab5136045b263ae1
Author: Jacques Lucke
Date:   Tue Nov 9 13:10:13 2021 +0100
Branches: master
https://developer.blender.org/rB09f1be53d88d1c3e342e8bfaab5136045b263ae1

Fix T92950: spreadsheet shows 0 instances when there are instances

Fix found by @erik85.

===================================================================

M	source/blender/editors/space_spreadsheet/spreadsheet_dataset_draw.cc

===================================================================

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));
   }



More information about the Bf-blender-cvs mailing list