Parameters of the Simple LOD distance component still take effect after Enable anim graph is disabled.

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
monroegm-disable-blank-issue-2
Tobias Alexander Franke 4 years ago committed by T.J. McGrath-Daly
parent bce5e36b53
commit ce0c62268a

@ -232,6 +232,10 @@ namespace EMotionFX
const float updateRateInSeconds = animGraphSampleRate > 0.0f ? 1.0f / animGraphSampleRate : 0.0f;
actorInstance->SetMotionSamplingRate(updateRateInSeconds);
}
else if (actorInstance->GetMotionSamplingRate() != 0)
{
actorInstance->SetMotionSamplingRate(0);
}
// Disable the automatic mesh LOD level adjustment based on screen space in case a simple LOD component is present.
// The simple LOD component overrides the mesh LOD level and syncs the skeleton with the mesh LOD level.

Loading…
Cancel
Save