mirror of
https://github.com/wolfpld/tracy
synced 2025-05-06 07:03:52 +00:00
Fix rapid advancing to next frames.
This commit is contained in:
parent
5fb478a7df
commit
b5fce70f25
@ -9681,14 +9681,24 @@ void View::ZoomToPrevFrame()
|
|||||||
|
|
||||||
void View::ZoomToNextFrame()
|
void View::ZoomToNextFrame()
|
||||||
{
|
{
|
||||||
|
int64_t start;
|
||||||
|
if( m_zoomAnim.active )
|
||||||
|
{
|
||||||
|
start = m_zoomAnim.start1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
start = m_zvStart;
|
||||||
|
}
|
||||||
|
|
||||||
int frame;
|
int frame;
|
||||||
if( m_zvStart < m_worker.GetFrameBegin( *m_frames, 0 ) )
|
if( start < m_worker.GetFrameBegin( *m_frames, 0 ) )
|
||||||
{
|
{
|
||||||
frame = -1;
|
frame = -1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
frame = m_worker.GetFrameRange( *m_frames, m_zvStart, m_zvStart ).first;
|
frame = m_worker.GetFrameRange( *m_frames, start, start ).first;
|
||||||
}
|
}
|
||||||
frame++;
|
frame++;
|
||||||
if( frame >= m_worker.GetFrameCount( *m_frames ) ) return;
|
if( frame >= m_worker.GetFrameCount( *m_frames ) ) return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user