From 66d8dab9256069bcef7da3133cd487634a98efae Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 14 Mar 2023 02:02:50 +0100 Subject: [PATCH] Preprocess timeline items in controller. --- server/TracyTimelineController.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracyTimelineController.cpp b/server/TracyTimelineController.cpp index 5161fa29..a8ca0189 100644 --- a/server/TracyTimelineController.cpp +++ b/server/TracyTimelineController.cpp @@ -107,6 +107,14 @@ void TimelineController::End( double pxns, const ImVec2& wpos, bool hover, bool UpdateCenterItem(); } + for( auto& item : m_items ) + { + if( item->WantPreprocess() && item->IsVisible() ) + { + item->Preprocess(); + } + } + int yOffset = 0; for( auto& item : m_items )