Commit b3376ffe authored by Dmitry Kazakov's avatar Dmitry Kazakov

Don't add undo information for the frame switch if we don't actually switch anything

parent 77c0ea7e
......@@ -111,6 +111,8 @@ bool KisImageAnimationInterface::externalFrameActive() const
void KisImageAnimationInterface::requestTimeSwitchWithUndo(int time)
if (m_d->currentUITime == time) return;
KisSwitchCurrentTimeCommand *cmd =
new KisSwitchCurrentTimeCommand(m_d->image, time);
......@@ -125,6 +127,8 @@ void KisImageAnimationInterface::requestTimeSwitchNonGUI(int time)
void KisImageAnimationInterface::switchCurrentTimeAsync(int frameId)
if (m_d->currentUITime == frameId) return;
m_d->currentTime = frameId;
m_d->currentUITime = frameId;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment