aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar.sletta@digia.com>2013-10-03 09:01:51 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-03 17:48:34 +0200
commitbc86ae863c036f18d33c6de0ef91fe960b003cb3 (patch)
tree7cdb3f6dd1310780b239b30203e6416b5a9483fb /src/quick
parent9098f6959d4befbe867dfc244c32cd080ec2fa36 (diff)
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 <michael.brasser@live.com>
Diffstat (limited to 'src/quick')
-rw-r--r--src/quick/util/qquickanimatorjob.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/util/qquickanimatorjob.cpp b/src/quick/util/qquickanimatorjob.cpp
index 980bbf387c..389ef23b2e 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<QQuickShaderEffectMaterial *>(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()