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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user