Fix interpolation for motion generation
parent
e2ca6ec5fa
commit
9f12f03d58
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue