From 499f51f025a59c0442108cf3e3efc513e94734f1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Sep 2022 00:55:08 +0200 Subject: [PATCH] Mark activity when animating timeline items. --- server/TracyTimelineItem.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyTimelineItem.cpp b/server/TracyTimelineItem.cpp index e0a82efa..ca1d9dc7 100644 --- a/server/TracyTimelineItem.cpp +++ b/server/TracyTimelineItem.cpp @@ -142,6 +142,7 @@ void TimelineItem::AdjustThreadHeight( bool firstFrame, int oldOffset, int& offs const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime ); m_height = int( std::min( m_height + move, h ) ); offset = oldOffset + m_height; + s_wasActive = true; } } } @@ -157,6 +158,7 @@ float TimelineItem::AdjustThreadPosition( float wy, int& offset ) const auto diff = m_offset - offset; const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime ); offset = m_offset = int( std::max( m_offset - move, offset ) ); + s_wasActive = true; } return offset + wy; }