Missed a spot when refactoring activeGroup
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 4 Oct 2011 07:39:31 +0000 (17:39 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 5 Oct 2011 05:33:29 +0000 (07:33 +0200)
Change-Id: Ia6b884557876efb98ab1e0785102cd81de9bbbed
Reviewed-on: http://codereview.qt-project.org/5966
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/particles/qsgparticleaffector.cpp

index 66cbba7..62f5ccd 100644 (file)
@@ -208,7 +208,7 @@ bool QSGParticleAffector::affectParticle(QSGParticleData *, qreal )
 void QSGParticleAffector::reset(QSGParticleData* pd)
 {//TODO: This, among other ones, should be restructured so they don't all need to remember to call the superclass
     if (m_onceOff)
-        if (m_groups.isEmpty() || m_groupIds.contains(pd->group))
+        if (activeGroup(d->group))
             m_onceOffed.remove(qMakePair(pd->group, pd->index));
 }