aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp')
-rw-r--r--tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp b/tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp
index 2d1876465c..f2307ed153 100644
--- a/tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp
+++ b/tests/auto/particles/qsgitemparticle/tst_qsgitemparticle.cpp
@@ -65,6 +65,9 @@ void tst_qsgitemparticle::test_basic()
QCOMPARE(system->groupData[0]->size(), 500);
foreach (QSGParticleData *d, system->groupData[0]->data) {
+ if (d->t == -1)
+ continue; //Particle data unused
+
QCOMPARE(d->x, 0.f);
QCOMPARE(d->y, 0.f);
QCOMPARE(d->vx, 0.f);