]> git.lizzy.rs Git - irrlicht.git/commitdiff
Avoid reskinning joints for animated meshes twice for each frame.
authorLars <larsh@apache.org>
Sun, 8 Jan 2023 00:59:02 +0000 (16:59 -0800)
committerLars <larsh@apache.org>
Sun, 8 Jan 2023 00:59:02 +0000 (16:59 -0800)
source/Irrlicht/CAnimatedMeshSceneNode.cpp

index 1195041fbd6a9cbc69c0fef0d884e5e00ba8d21c..9d92e03875c54c5eb31f7988b7e2370a64c2948f 100644 (file)
@@ -236,15 +236,6 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs)
 \r
        // set CurrentFrameNr\r
        buildFrameNr(timeMs-LastTimeMs);\r
-\r
-       // update bbox\r
-       if (Mesh)\r
-       {\r
-               scene::IMesh * mesh = getMeshForCurrentFrame();\r
-\r
-               if (mesh)\r
-                       Box = mesh->getBoundingBox();\r
-       }\r
        LastTimeMs = timeMs;\r
 \r
        IAnimatedMeshSceneNode::OnAnimate(timeMs);\r