1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2024-11-26 20:28:50 -05:00

always show items without a legend entry

This commit is contained in:
Evan Pezent 2020-06-23 22:02:22 -05:00
parent 2177ad1982
commit 4d4cac629b

View File

@ -633,6 +633,9 @@ ImPlotItem* RegisterItem(const char* label_id) {
item->NameOffset = gp.LegendLabels.size(); item->NameOffset = gp.LegendLabels.size();
gp.LegendLabels.append(label_id, label_id + strlen(label_id) + 1); gp.LegendLabels.append(label_id, label_id + strlen(label_id) + 1);
} }
else {
item->Show = true;
}
if (item->Show) if (item->Show)
gp.VisibleItemCount++; gp.VisibleItemCount++;
return item; return item;