Merge pull request #6290 from tjmgd/bug-lod-disable-38

Parameters of LOD distance component still take effect when anim graph disabled
monroegm-disable-blank-issue-2
Chris Galvan 4 years ago committed by GitHub
commit ece56055bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -234,6 +234,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