mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-15 19:52:05 +00:00
Repaint animated sprite only when frame changed
This commit is contained in:
parent
c1392909bb
commit
b6afb1ae2a
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user