From kde-commits Mon May 16 18:36:17 2016 From: Dmitry Kazakov Date: Mon, 16 May 2016 18:36:17 +0000 To: kde-commits Subject: [krita] libs/ui/canvas: Fix animation not stop on the first absent frame Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=146342378815394 Git commit 1cb60a6987d83b4e1524d997268cf987f359effc by Dmitry Kazakov. Committed on 16/05/2016 at 18:35. Pushed by dkazakov into branch 'master'. Fix animation not stop on the first absent frame BUG:363128 Fixes T2511 M +2 -1 libs/ui/canvas/kis_animation_player.cpp http://commits.kde.org/krita/1cb60a6987d83b4e1524d997268cf987f359effc diff --git a/libs/ui/canvas/kis_animation_player.cpp b/libs/ui/canvas/kis_a= nimation_player.cpp index 62a774b..4fba8b7 100644 --- a/libs/ui/canvas/kis_animation_player.cpp +++ b/libs/ui/canvas/kis_animation_player.cpp @@ -285,10 +285,11 @@ void KisAnimationPlayer::uploadFrame(int frame) m_d->useFastFrameUpload =3D true; emit sigFrameChanged(); } else { + m_d->useFastFrameUpload =3D false; + // no OpenGL cache or the frame just not cached yet m_d->canvas->image()->animationInterface()->switchCurrentTimeAsync= (frame); = - m_d->useFastFrameUpload =3D false; emit sigFrameChanged(); } =20