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
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-02-15 03:00:45 +0300
committerHans Goudey <h.goudey@me.com>2022-02-15 03:00:45 +0300
commit1f7f7ca14e50be457810efb109a03d98f78726fc (patch)
tree9ff7da97a2053e7fb36474613b39fba94b30b985 /source
parentd7d827789b4cbb1b55edae890f510302eff2eb49 (diff)
Fix T95720: Spreadsheet missing volume grid info
The cell drawing code in 474adc6f883c2d5a854d7 was missing an implementation for virtual arrays of strings.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_spreadsheet/spreadsheet_layout.cc17
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 &params, const Span<float> values) const