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