From de88930acb55c26c233282ce27ae98849751f9ac Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sun, 9 Jun 2019 20:40:24 +0930 Subject: [PATCH] Adjust smooth threshold of animation generation --- src/motionsgenerator.cpp | 2 +- src/poseeditwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/motionsgenerator.cpp b/src/motionsgenerator.cpp index 0b5f2199..c577fb1d 100644 --- a/src/motionsgenerator.cpp +++ b/src/motionsgenerator.cpp @@ -204,7 +204,7 @@ void MotionsGenerator::generateMotion(const QUuid &motionId, std::set &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; diff --git a/src/poseeditwidget.cpp b/src/poseeditwidget.cpp index 6ec3baf3..7ea0b73e 100644 --- a/src/poseeditwidget.cpp +++ b/src/poseeditwidget.cpp @@ -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);