Make turbulence respect offset
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 20 Sep 2011 07:52:45 +0000 (17:52 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Sep 2011 05:11:25 +0000 (07:11 +0200)
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>

src/declarative/particles/qsgturbulence.cpp

index 7792c61..aa5dfeb 100644 (file)
@@ -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){