Repaint animated sprite only when frame changed

This commit is contained in:
Ying Ruei Liang (KK) 2015-12-06 19:21:41 +08:00
parent c1392909bb
commit b6afb1ae2a

View File

@ -141,10 +141,10 @@ void PlayState::onPlaybackTick()
m_editor->setFrame(frame); m_editor->setFrame(frame);
m_nextFrameTime += getNextFrameTime(); m_nextFrameTime += getNextFrameTime();
m_editor->invalidate();
} }
m_curFrameTick = ui::clock(); m_curFrameTick = ui::clock();
m_editor->invalidate();
} }
// Before executing any command, we stop the animation // Before executing any command, we stop the animation