From 9f12f03d58588675a16cc8d00b10099f87d55c61 Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Fri, 8 Nov 2019 23:35:27 +0930 Subject: [PATCH] Fix interpolation for motion generation --- src/motionsgenerator.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/motionsgenerator.cpp b/src/motionsgenerator.cpp index 46b4835d..3b7eed0b 100644 --- a/src/motionsgenerator.cpp +++ b/src/motionsgenerator.cpp @@ -215,14 +215,14 @@ void MotionsGenerator::generateMotion(const QUuid &motionId, std::set &vi qDebug() << "Clip type is interpolation, but clip sit at end"; break; } - const JointNodeTree *beginJointNodeTree = findClipBeginJointNodeTree((*motionClips)[clipIndex - 1]); + const JointNodeTree *beginJointNodeTree = findClipEndJointNodeTree((*motionClips)[clipIndex - 1]); if (nullptr == beginJointNodeTree) { - qDebug() << "findClipBeginJointNodeTree failed"; + qDebug() << "findClipEndJointNodeTree failed"; break; } - const JointNodeTree *endJointNodeTree = findClipEndJointNodeTree((*motionClips)[clipIndex + 1]); + const JointNodeTree *endJointNodeTree = findClipBeginJointNodeTree((*motionClips)[clipIndex + 1]); if (nullptr == endJointNodeTree) { - qDebug() << "findClipEndJointNodeTree failed"; + qDebug() << "findClipBeginJointNodeTree failed"; break; } outcomes.push_back({progress - lastProgress,