Fix interpolation for motion generation

master
Jeremy Hu 2019-11-08 23:35:27 +09:30
parent e2ca6ec5fa
commit 9f12f03d58
1 changed files with 4 additions and 4 deletions

View File

@ -215,14 +215,14 @@ void MotionsGenerator::generateMotion(const QUuid &motionId, std::set<QUuid> &vi
qDebug() << "Clip type is interpolation, but clip sit at end"; qDebug() << "Clip type is interpolation, but clip sit at end";
break; break;
} }
const JointNodeTree *beginJointNodeTree = findClipBeginJointNodeTree((*motionClips)[clipIndex - 1]); const JointNodeTree *beginJointNodeTree = findClipEndJointNodeTree((*motionClips)[clipIndex - 1]);
if (nullptr == beginJointNodeTree) { if (nullptr == beginJointNodeTree) {
qDebug() << "findClipBeginJointNodeTree failed"; qDebug() << "findClipEndJointNodeTree failed";
break; break;
} }
const JointNodeTree *endJointNodeTree = findClipEndJointNodeTree((*motionClips)[clipIndex + 1]); const JointNodeTree *endJointNodeTree = findClipBeginJointNodeTree((*motionClips)[clipIndex + 1]);
if (nullptr == endJointNodeTree) { if (nullptr == endJointNodeTree) {
qDebug() << "findClipEndJointNodeTree failed"; qDebug() << "findClipBeginJointNodeTree failed";
break; break;
} }
outcomes.push_back({progress - lastProgress, outcomes.push_back({progress - lastProgress,