summaryrefslogtreecommitdiffstats
path: root/src/animation/backend/clipblendnode.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2017-03-16 13:26:41 +0000
committerSean Harmer <sean.harmer@kdab.com>2017-03-25 08:07:15 +0000
commitc7d15b7c5e044f40167f4a79be8bf4f569c6b8be (patch)
tree6379fbcb58408b2b7657081d3545a320148f966b /src/animation/backend/clipblendnode.cpp
parentb2a274103eff2a684f0aa91c7f18ee8b358d6dd1 (diff)
Add function to recursively calculate duration of a blend tree
The resulting duration is independent of which animators the blend tree is associated with so this can be implemented as a simple set of virtual functions in the concrete classes. The value node simply returns the duration of the contained clip; the additive node returns the duration of the base node; and the lerp node lerps the durations of the start and end nodes. Change-Id: Ib6edea3fa495885493fa72d44437fea5a8c5a446 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Mike Krus <mike.krus@kdab.com>
Diffstat (limited to 'src/animation/backend/clipblendnode.cpp')
-rw-r--r--src/animation/backend/clipblendnode.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/animation/backend/clipblendnode.cpp b/src/animation/backend/clipblendnode.cpp
index 745a7a27b..18d57b0c7 100644
--- a/src/animation/backend/clipblendnode.cpp
+++ b/src/animation/backend/clipblendnode.cpp
@@ -106,10 +106,7 @@ void ClipBlendNode::setClipBlendNodeManager(ClipBlendNodeManager *manager)
m_manager = manager;
}
-ClipBlendNodeManager *ClipBlendNode::clipBlendNodeManager() const
-{
- return m_manager;
-}
+
void ClipBlendNode::initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &change)
{