diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-15 03:00:45 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-15 03:00:45 +0300 |
commit | 1f7f7ca14e50be457810efb109a03d98f78726fc (patch) | |
tree | 9ff7da97a2053e7fb36474613b39fba94b30b985 | |
parent | d7d827789b4cbb1b55edae890f510302eff2eb49 (diff) |
Fix T95720: Spreadsheet missing volume grid info
The cell drawing code in 474adc6f883c2d5a854d7 was missing an
implementation for virtual arrays of strings.
-rw-r--r-- | source/blender/editors/space_spreadsheet/spreadsheet_layout.cc | 17 |
1 files changed, 17 insertions, 0 deletions
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 |