[Bf-blender-cvs] [1f7f7ca14e5] blender-v3.1-release: Fix T95720: Spreadsheet missing volume grid info
Hans Goudey
noreply at git.blender.org
Tue Feb 15 01:00:52 CET 2022
Commit: 1f7f7ca14e50be457810efb109a03d98f78726fc
Author: Hans Goudey
Date: Mon Feb 14 18:00:45 2022 -0600
Branches: blender-v3.1-release
https://developer.blender.org/rB1f7f7ca14e50be457810efb109a03d98f78726fc
Fix T95720: Spreadsheet missing volume grid info
The cell drawing code in 474adc6f883c2d5a854d7 was missing an
implementation for virtual arrays of strings.
===================================================================
M source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
===================================================================
diff --git a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
index f4b5ff819ed..29c3c7f5644 100644
--- a/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
+++ b/source/blender/editors/space_spreadsheet/spreadsheet_layout.cc
@@ -247,6 +247,23 @@ class SpreadsheetLayoutDrawer : public SpreadsheetDrawer {
}
}
}
+ else if (data.type().is<std::string>()) {
+ uiDefIconTextBut(params.block,
+ UI_BTYPE_LABEL,
+ 0,
+ ICON_NONE,
+ data.get<std::string>(real_index).c_str(),
+ params.xmin,
+ params.ymin,
+ params.width,
+ params.height,
+ nullptr,
+ 0,
+ 0,
+ 0,
+ 0,
+ nullptr);
+ }
}
void draw_float_vector(const CellDrawParams ¶ms, const Span<float> values) const
More information about the Bf-blender-cvs
mailing list