From b18d39153453e6e2cab9e6c75bd2991aa25d0397 Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Sat, 18 Mar 2017 15:41:24 +0000 Subject: Add function to format clip results using a gather operation If an index in the format is -1 put a default value of 0 into the formatted results. This will allow clips to not have to provide every channel used anywhere by the blend tree. Change-Id: I9e18d0840e75a959ef680cbd54259a74c9331fa8 Reviewed-by: Paul Lemire --- src/animation/backend/animationutils_p.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/animation/backend/animationutils_p.h') diff --git a/src/animation/backend/animationutils_p.h b/src/animation/backend/animationutils_p.h index da85451f8..705e37c34 100644 --- a/src/animation/backend/animationutils_p.h +++ b/src/animation/backend/animationutils_p.h @@ -172,6 +172,10 @@ Q_AUTOTEST_EXPORT QVector gatherValueNodesToEvaluate(Handler *handler, Qt3DCore::QNodeId blendTreeRootId); +Q_AUTOTEST_EXPORT +ClipResults formatClipResults(const ClipResults &rawClipResults, + const ComponentIndices &format); + Q_AUTOTEST_EXPORT ClipResults evaluateBlendTree(Handler *handler, BlendedClipAnimator *animator, -- cgit v1.2.3