Merge pull request #890 from TheKK/reduceCpuUsage

Invalidate Editor only when frame changed in PlayState
This commit is contained in:
David Capello 2015-12-06 10:31:06 -03:00
commit df6e97d98d

View File

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