Don't draw separator when timeline item is collapsed.

This commit is contained in:
Bartosz Taudul 2022-09-03 21:14:56 +02:00
parent 5c90fe7a6e
commit eaa78de534
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -57,7 +57,10 @@ void TimelineItem::Draw( bool firstFrame, double pxns, int& offset, const ImVec2
const auto label = HeaderLabel();
labelWidth = ImGui::CalcTextSize( label ).x;
DrawTextContrast( draw, wpos + ImVec2( ty, offset ), m_showFull ? color : colorInactive, label );
DrawLine( draw, dpos + ImVec2( 0, offset + ty - 1 ), dpos + ImVec2( w, offset + ty - 1 ), HeaderLineColor() );
if( m_showFull )
{
DrawLine( draw, dpos + ImVec2( 0, offset + ty - 1 ), dpos + ImVec2( w, offset + ty - 1 ), HeaderLineColor() );
}
if( hover && ImGui::IsMouseHoveringRect( wpos + ImVec2( 0, offset ), wpos + ImVec2( ty + labelWidth, offset + ty ) ) )
{