mirror of
https://github.com/gwm17/implot.git
synced 2024-11-23 10:48:52 -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();
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user