aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-09-20 17:52:45 +1000
committerQt by Nokia <qt-info@nokia.com>2011-09-21 07:11:25 +0200
commit04591bc1e8f45ec60e4d2c13aa557bbd5dda90f9 (patch)
tree5130b9b1ebd33f35a07327f5e02d3430af72d879 /src
parentc07ea77a6201ef5595ff5714fba891be4408fa9a (diff)
Make turbulence respect offset
Change-Id: Ife84b900cd9c99aff4f4cb5f860a0853c08a40a3 Reviewed-on: http://codereview.qt-project.org/5206 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/particles/qsgturbulence.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/particles/qsgturbulence.cpp b/src/declarative/particles/qsgturbulence.cpp
index 7792c61ecd..aa5dfeb0bc 100644
--- a/src/declarative/particles/qsgturbulence.cpp
+++ b/src/declarative/particles/qsgturbulence.cpp
@@ -177,6 +177,7 @@ void QSGTurbulenceAffector::affectSystem(qreal dt)
if (!m_system || !m_enabled)
return;
ensureInit();
+ updateOffsets();//### Needed if an ancestor is transformed.
QRectF boundsRect(0, 0, width()-1, height()-1);
foreach (QSGParticleGroupData *gd, m_system->m_groupData){