| 370 | } |
| 371 | |
| 372 | void BustColorCache(const char* plot_title_id) { |
| 373 | ImPlotContext& gp = *GImPlot; |
| 374 | if (plot_title_id == nullptr) { |
| 375 | BustItemCache(); |
| 376 | } |
| 377 | else { |
| 378 | ImGuiID id = ImGui::GetCurrentWindow()->GetID(plot_title_id); |
| 379 | ImPlotPlot* plot = gp.Plots.GetByKey(id); |
| 380 | if (plot != nullptr) |
| 381 | plot->Items.Reset(); |
| 382 | else { |
| 383 | ImPlotSubplot* subplot = gp.Subplots.GetByKey(id); |
| 384 | if (subplot != nullptr) |
| 385 | subplot->Items.Reset(); |
| 386 | } |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | //----------------------------------------------------------------------------- |
| 391 | // [SECTION] BeginItem / EndItem |
no test coverage detected