Fix frame selection when zoom anim is active.

This commit is contained in:
Bartosz Taudul 2019-03-06 01:45:26 +01:00
parent a26d0bf2b4
commit 4b1c0ff0c5

View File

@ -1240,6 +1240,7 @@ void View::DrawFrames()
if( ImGui::IsMouseClicked( 0 ) ) if( ImGui::IsMouseClicked( 0 ) )
{ {
m_pause = true; m_pause = true;
m_zoomAnim.active = false;
m_zvStart = m_worker.GetFrameBegin( *m_frames, sel ); m_zvStart = m_worker.GetFrameBegin( *m_frames, sel );
m_zvEnd = m_worker.GetFrameEnd( *m_frames, sel + group - 1 ); m_zvEnd = m_worker.GetFrameEnd( *m_frames, sel + group - 1 );
if( m_zvStart == m_zvEnd ) m_zvStart--; if( m_zvStart == m_zvEnd ) m_zvStart--;