aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/particles/qsggravity/tst_qsggravity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/particles/qsggravity/tst_qsggravity.cpp')
-rw-r--r--tests/auto/particles/qsggravity/tst_qsggravity.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/particles/qsggravity/tst_qsggravity.cpp b/tests/auto/particles/qsggravity/tst_qsggravity.cpp
index e99aa1e3c9..e30d261e18 100644
--- a/tests/auto/particles/qsggravity/tst_qsggravity.cpp
+++ b/tests/auto/particles/qsggravity/tst_qsggravity.cpp
@@ -64,6 +64,9 @@ void tst_qsggravity::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->ax, 707.10678f);
QCOMPARE(d->ay, 707.10678f);
QCOMPARE(d->lifeSpan, 0.5f);