summaryrefslogtreecommitdiffstats
path: root/tests/auto/animation/animationutils/tst_animationutils.cpp
diff options
context:
space:
mode:
authorSean Harmer <sh@theharmers.co.uk>2017-08-31 15:57:12 +0100
committerSean Harmer <sean.harmer@kdab.com>2017-09-26 10:53:08 +0000
commit3aefe68f281f1815dcb6ca73751d17b470429a0f (patch)
treeb8a4d2f874c144681b2e69c65e500a31e46c1bd0 /tests/auto/animation/animationutils/tst_animationutils.cpp
parent72e80520d36802672eca1e93bc6c6019e6f5ffc3 (diff)
Fix gathering clip value node ids
This correctly handles the case where the blend tree consists of a single value node. Added test case to catch it. Change-Id: I8982d2081748866d163f107a4513bd2d17feb83a Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'tests/auto/animation/animationutils/tst_animationutils.cpp')
-rw-r--r--tests/auto/animation/animationutils/tst_animationutils.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/auto/animation/animationutils/tst_animationutils.cpp b/tests/auto/animation/animationutils/tst_animationutils.cpp
index e7a0f343d..068db7ac6 100644
--- a/tests/auto/animation/animationutils/tst_animationutils.cpp
+++ b/tests/auto/animation/animationutils/tst_animationutils.cpp
@@ -1921,6 +1921,18 @@ private Q_SLOTS:
QTest::newRow("simple lerp") << handler << lerp->peerId() << expectedIds;
}
+
+ {
+ Handler *handler = new Handler;
+
+ const auto value1 = createClipBlendValue(handler);
+ const auto clip1Id = Qt3DCore::QNodeId::createId();
+ value1->setClipId(clip1Id);
+
+ QVector<Qt3DCore::QNodeId> expectedIds = { value1->peerId() };
+
+ QTest::newRow("value only") << handler << value1->peerId() << expectedIds;
+ }
}
void checkGatherValueNodesToEvaluate()