void CEditAnimationDialog::OnPauseAnimation( wxCommandEvent& /*event*/ ) { CModel* pModel = m_pAnimationGLWindow->GetModel(); if (pModel) { if (pModel->GetAnimationController()->IsPlaying()) { pModel->GetAnimationController()->Pause(); } else { pModel->GetAnimationController()->Resume(); } } }
void CEditAnimationDialog::OnStopAnimation( wxCommandEvent& /*event*/ ) { CModel* pModel = m_pAnimationGLWindow->GetModel(); if (pModel) { pModel->GetAnimationController()->Stop(); m_pTimeBar->SetCurrentCursor(0); } }