Drawing is not finished until function return.

This commit is contained in:
Bartosz Taudul 2023-03-23 22:09:19 +01:00
parent e321e91c7d
commit 6c21edd509
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -63,7 +63,6 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse
}
DrawOverlay( wpos + ImVec2( 0, yBegin ), wpos + ImVec2( w, yEnd ) );
DrawFinished();
ImGui::PopClipRect();
float labelWidth;
@ -127,6 +126,7 @@ void TimelineItem::Draw( bool firstFrame, const TimelineContext& ctx, int yOffse
yEnd += 0.2f * ostep;
AdjustThreadHeight( firstFrame, yBegin, yEnd );
DrawFinished();
ImGui::PopID();
}