From 0da97d5ab9aff9ed8d0000f835de67d2510f472c Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 1 Sep 2011 18:47:26 +1000 Subject: [PATCH] Allow affectors to be transformed Change-Id: I4452707589d7b98709cd995569a5bf36bd5448a0 Reviewed-on: http://codereview.qt-project.org/4053 Reviewed-by: Qt Sanity Bot Reviewed-by: Martin Jones --- src/declarative/particles/qsgparticleaffector.cpp | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/src/declarative/particles/qsgparticleaffector.cpp b/src/declarative/particles/qsgparticleaffector.cpp index 3313106..a64b4ee 100644 --- a/src/declarative/particles/qsgparticleaffector.cpp +++ b/src/declarative/particles/qsgparticleaffector.cpp @@ -117,12 +117,6 @@ QSGParticleAffector::QSGParticleAffector(QSGItem *parent) : QSGItem(parent), m_needsReset(false), m_system(0), m_active(true) , m_updateIntSet(false), m_shape(new QSGParticleExtruder(this)), m_signal(false) { - connect(this, SIGNAL(systemChanged(QSGParticleSystem*)), - this, SLOT(updateOffsets())); - connect(this, SIGNAL(xChanged()), - this, SLOT(updateOffsets())); - connect(this, SIGNAL(yChanged()), - this, SLOT(updateOffsets()));//TODO: in componentComplete and all relevant signals } bool QSGParticleAffector::isAffectConnected() @@ -152,6 +146,7 @@ void QSGParticleAffector::affectSystem(qreal dt) m_groups << m_system->m_groupIds[p];//###Can this occur before group ids are properly assigned? m_updateIntSet = false; } + updateOffsets();//### Needed if an ancestor is transformed. foreach (QSGParticleGroupData* gd, m_system->m_groupData){ foreach (QSGParticleData* d, gd->data){ if (!d) -- 1.7.2.5