From: Gunnar Sletta Date: Thu, 3 Oct 2013 07:01:51 +0000 (+0200) Subject: Make sure to markDirty the node from UniformAnimator. X-Git-Tag: upstream/5.2.1~282 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc86ae863c036f18d33c6de0ef91fe960b003cb3;p=platform%2Fupstream%2Fqtdeclarative.git Make sure to markDirty the node from UniformAnimator. Failure to do so will not repaint scene graphs which only has changes from the animator. Change-Id: Id420775d704df17379ca9b0eecd543fd3829fd00 Reviewed-by: Michael Brasser --- diff --git a/src/quick/util/qquickanimatorjob.cpp b/src/quick/util/qquickanimatorjob.cpp index 980bbf3..389ef23 100644 --- a/src/quick/util/qquickanimatorjob.cpp +++ b/src/quick/util/qquickanimatorjob.cpp @@ -563,6 +563,10 @@ void QQuickUniformAnimatorJob::updateCurrentTime(int time) QQuickShaderEffectMaterial *material = static_cast(m_node->material()); material->uniforms[m_uniformType][m_uniformIndex].value = m_value; + // As we're not touching the nodes, we need to explicitly mark it dirty. + // Otherwise, the renderer will abort repainting if this was the only + // change in the graph currently rendering. + m_node->markDirty(QSGNode::DirtyMaterial); } void QQuickUniformAnimatorJob::writeBack()