Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36339

Sprites incorrectly interpolate with "reverse: true"

    XMLWordPrintable

Details

    • 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,12 @@ Item {
               anchors.centerIn: parent
               source: "content/speaker.png"
               frameCount: 60
      -        frameSync: true
      +        //frameSync: true
               frameWidth: 170
               frameHeight: 170
               loops: 3
      +        reverse: true
      +        frameDuration: 300
           }
       //! [sprite]
      

      The interpolation code tries to always take the next frame, rather than taking the previous frame when 'reverse: true'

      This is an issue for both AnimatedSprite and Sprite.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mbrasser Michael Brasser
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes