From 37442a76715d711bf1f7c548b31469fae2f5aa83 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Sep 2022 01:13:40 +0200 Subject: [PATCH] Mark activity when animating message marker. --- server/TracyView_ZoneTimeline.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView_ZoneTimeline.cpp b/server/TracyView_ZoneTimeline.cpp index 92aeded7..d618820f 100644 --- a/server/TracyView_ZoneTimeline.cpp +++ b/server/TracyView_ZoneTimeline.cpp @@ -128,6 +128,7 @@ void View::DrawThreadMessages( const ThreadData& thread, double pxns, int offset if( !isMsgHovered ) { animOff = -fabs( sin( s_time * 8 ) ) * th; + m_wasActive = true; } } } @@ -142,6 +143,7 @@ void View::DrawThreadMessages( const ThreadData& thread, double pxns, int offset if( !isMsgHovered ) { animOff = -fabs( sin( s_time * 8 ) ) * th; + m_wasActive = true; } } draw->AddTriangle( wpos + ImVec2( px - (ty - to) * 0.5, animOff + offset + to ), wpos + ImVec2( px + (ty - to) * 0.5, animOff + offset + to ), wpos + ImVec2( px, animOff + offset + to + th ), color, 2.0f );