diff options
author | Jan Arve Saether <jan-arve.saether@digia.com> | 2014-09-18 17:00:12 +0200 |
---|---|---|
committer | Jan Arve Sæther <jan-arve.saether@theqtcompany.com> | 2014-10-08 17:08:58 +0200 |
commit | 28949c9699014b4f7abba396c28dea207b29821e (patch) | |
tree | db0fe2bfb7022b409623201422f373a854813675 | |
parent | 4cc76248e81307be41b84c71e95e267daed6f728 (diff) |
Animations with no frameSync should be synchronized to the start time
(i.e. "start time" means the time when running was set to true)
Unfortunately, we reset the timestamp *after* the image had been
loaded and assembled in buildNode(), therefore, the first *displayed*
frame would always be the first one in the animation regardless of
how long time it took to load the image.
Change-Id: I6b57a0f69afd3c9140628b874481cdeda1dffce5
Reviewed-by: Alan Alpert (Personal) <416365416c@gmail.com>
-rw-r--r-- | src/quick/items/qquickanimatedsprite.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/items/qquickanimatedsprite.cpp b/src/quick/items/qquickanimatedsprite.cpp index e816975827..f144345b6c 100644 --- a/src/quick/items/qquickanimatedsprite.cpp +++ b/src/quick/items/qquickanimatedsprite.cpp @@ -529,7 +529,6 @@ QSGGeometryNode* QQuickAnimatedSprite::buildNode() indices[5] = 2; - m_timestamp.start(); m_node = new QSGGeometryNode(); m_node->setGeometry(g); m_node->setMaterial(m_material); |