mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 02:38:53 -05:00
always show items without a legend entry
This commit is contained in:
parent
2177ad1982
commit
4d4cac629b
|
@ -633,6 +633,9 @@ ImPlotItem* RegisterItem(const char* label_id) {
|
|||
item->NameOffset = gp.LegendLabels.size();
|
||||
gp.LegendLabels.append(label_id, label_id + strlen(label_id) + 1);
|
||||
}
|
||||
else {
|
||||
item->Show = true;
|
||||
}
|
||||
if (item->Show)
|
||||
gp.VisibleItemCount++;
|
||||
return item;
|
||||
|
|
Loading…
Reference in New Issue
Block a user