Avoid reskinning joints for animated meshes twice for each frame.

This commit is contained in:
Lars 2023-01-07 16:59:02 -08:00
parent 7d3142b969
commit 3de3ff524a
1 changed files with 0 additions and 9 deletions

View File

@ -236,15 +236,6 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs)
// set CurrentFrameNr
buildFrameNr(timeMs-LastTimeMs);
// update bbox
if (Mesh)
{
scene::IMesh * mesh = getMeshForCurrentFrame();
if (mesh)
Box = mesh->getBoundingBox();
}
LastTimeMs = timeMs;
IAnimatedMeshSceneNode::OnAnimate(timeMs);