mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Mark activity when animating timeline items.
This commit is contained in:
parent
09d7b7336f
commit
499f51f025
@ -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 );
|
const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime );
|
||||||
m_height = int( std::min<double>( m_height + move, h ) );
|
m_height = int( std::min<double>( m_height + move, h ) );
|
||||||
offset = oldOffset + m_height;
|
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 diff = m_offset - offset;
|
||||||
const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime );
|
const auto move = std::max( 2.0, diff * 10.0 * ImGui::GetIO().DeltaTime );
|
||||||
offset = m_offset = int( std::max<double>( m_offset - move, offset ) );
|
offset = m_offset = int( std::max<double>( m_offset - move, offset ) );
|
||||||
|
s_wasActive = true;
|
||||||
}
|
}
|
||||||
return offset + wy;
|
return offset + wy;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user