Fix T95720: Spreadsheet missing volume grid info

The cell drawing code in 474adc6f88 was missing an
implementation for virtual arrays of strings.
This commit is contained in:
Hans Goudey 2022-02-14 18:00:45 -06:00
parent d7d827789b
commit 1f7f7ca14e
Notes: blender-bot 2023-02-14 07:39:46 +01:00
Referenced by issue #95720, Spreadsheet does not display volume grid information for import vdb file
1 changed files with 17 additions and 0 deletions

View File

@ -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