From 3de3ff524a6e24803e4c325e46a5d9127c251fed Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 7 Jan 2023 16:59:02 -0800 Subject: [PATCH] Avoid reskinning joints for animated meshes twice for each frame. --- source/Irrlicht/CAnimatedMeshSceneNode.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source/Irrlicht/CAnimatedMeshSceneNode.cpp b/source/Irrlicht/CAnimatedMeshSceneNode.cpp index 1195041..9d92e03 100644 --- a/source/Irrlicht/CAnimatedMeshSceneNode.cpp +++ b/source/Irrlicht/CAnimatedMeshSceneNode.cpp @@ -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);