Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.0.0, 5.1.0 , 5.2.0
-
None
-
d37b770a353079d1e8e34b5f59d4cd132fbd04e2
Description
To reproduce make the following change to the AnimatedSprite example:
--- a/examples/quick/imageelements/animatedsprite.qml +++ b/examples/quick/imageelements/animatedsprite.qml @@ -55,10 +55,10 @@ Item { anchors.centerIn: parent source: "content/speaker.png" frameCount: 60 - frameSync: true frameWidth: 170 frameHeight: 170 loops: 3 + frameDuration: 300 } //! [sprite]
Note that when transitioning from the first row of sprites to the second, there is a long frame. Interpolation breaks at this point because the code does:
if (frameAt < (frameCount-1))
x2 += w;
which assumes a single row to work correctly.
This is an issue for both AnimatedSprite and SpriteSequence.