From c7670553720b074664d8b7a6cd9982dd87e5fe4c Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Tue, 4 Oct 2011 17:39:31 +1000 Subject: [PATCH] Missed a spot when refactoring activeGroup Change-Id: Ia6b884557876efb98ab1e0785102cd81de9bbbed Reviewed-on: http://codereview.qt-project.org/5966 Reviewed-by: Qt Sanity Bot Reviewed-by: Martin Jones --- src/declarative/particles/qsgparticleaffector.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/declarative/particles/qsgparticleaffector.cpp b/src/declarative/particles/qsgparticleaffector.cpp index 66cbba7..62f5ccd 100644 --- a/src/declarative/particles/qsgparticleaffector.cpp +++ b/src/declarative/particles/qsgparticleaffector.cpp @@ -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)); } -- 1.7.2.5