Preprocess timeline items in controller.

This commit is contained in:
Bartosz Taudul 2023-03-14 02:02:50 +01:00
parent 7dd31ab609
commit 66d8dab925
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -107,6 +107,14 @@ void TimelineController::End( double pxns, const ImVec2& wpos, bool hover, bool
UpdateCenterItem();
}
for( auto& item : m_items )
{
if( item->WantPreprocess() && item->IsVisible() )
{
item->Preprocess();
}
}
int yOffset = 0;
for( auto& item : m_items )