Adjust smooth threshold of animation generation

master
Jeremy Hu 2019-06-09 20:40:24 +09:30
parent c568d18218
commit de88930acb
2 changed files with 2 additions and 2 deletions

View File

@ -204,7 +204,7 @@ void MotionsGenerator::generateMotion(const QUuid &motionId, std::set<QUuid> &vi
const JointNodeTree nextJointNodeTree = poseJointNodeTree(progressClip.linkToId, nextFrame);
const JointNodeTree middleJointNodeTree = generateInterpolation(InterpolationType::Linear, previousJointNodeTree, nextJointNodeTree, 0.5);
outcomes.push_back({progress - lastProgress,
generateInterpolation(InterpolationType::Linear, jointNodeTree, middleJointNodeTree, 0.5)});
generateInterpolation(InterpolationType::Linear, jointNodeTree, middleJointNodeTree, 0.75)});
lastProgress = progress;
}
progress += interval;

View File

@ -38,7 +38,7 @@ PoseEditWidget::PoseEditWidget(const Document *document, QWidget *parent) :
SkeletonGraphicsWidget *graphicsWidget = new SkeletonGraphicsWidget(m_poseDocument);
graphicsWidget->setNodePositionModifyOnly(true);
graphicsWidget->setBackgroundBlur(0.5);
graphicsWidget->setBackgroundBlur(1.0);
m_poseGraphicsWidget = graphicsWidget;
initShortCuts(this, graphicsWidget);