Fix: Blend node applies both poses at value 1 (#6292)

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>

Co-authored-by: Tobias Alexander Franke <tobias.alexander.franke@huawei.com>
monroegm-disable-blank-issue-2
tjmgd 4 years ago committed by GitHub
parent 40ca1dcbf9
commit 4695d36ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -224,6 +224,11 @@ namespace EMotionFX
poseIndexB = poseIndexA;
*outWeight = 0.0f;
}
else if ((*outWeight > 1.0f - MCore::Math::epsilon))
{
poseIndexA = poseIndexB;
*outWeight = 0.0f;
}
// Search complete: the input weight is between m_paramWeights[i] and m_paramWeights[i - 1]
// Calculate the blend weight and get the nodes and then return

Loading…
Cancel
Save