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:
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
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue