| 380 | } |
| 381 | |
| 382 | void BustColorCache(const char* plot_title_id) { |
| 383 | ImPlotContext& gp = *GImPlot; |
| 384 | if (plot_title_id == nullptr) { |
| 385 | BustItemCache(); |
| 386 | } |
| 387 | else { |
| 388 | ImGuiID id = ImGui::GetCurrentWindow()->GetID(plot_title_id); |
| 389 | ImPlotPlot* plot = gp.Plots.GetByKey(id); |
| 390 | if (plot != nullptr) |
| 391 | plot->Items.Reset(); |
| 392 | else { |
| 393 | ImPlotSubplot* subplot = gp.Subplots.GetByKey(id); |
| 394 | if (subplot != nullptr) |
| 395 | subplot->Items.Reset(); |
| 396 | } |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | //----------------------------------------------------------------------------- |
| 401 | // [SECTION] BeginItem / EndItem |
no test coverage detected