diff options
author | Lars <larsh@apache.org> | 2023-01-07 16:59:02 -0800 |
---|---|---|
committer | Lars <larsh@apache.org> | 2023-01-07 16:59:02 -0800 |
commit | 3de3ff524a6e24803e4c325e46a5d9127c251fed (patch) | |
tree | f470ad05b9d0baeedb60bd42c95c7de64071e39f /source/Irrlicht/CAnimatedMeshSceneNode.cpp | |
parent | 7d3142b969c72d9bcaca1836acc8dc69485e18a5 (diff) | |
download | irrlicht-3de3ff524a6e24803e4c325e46a5d9127c251fed.tar.xz |
Avoid reskinning joints for animated meshes twice for each frame.
Diffstat (limited to 'source/Irrlicht/CAnimatedMeshSceneNode.cpp')
-rw-r--r-- | source/Irrlicht/CAnimatedMeshSceneNode.cpp | 9 |
1 files changed, 0 insertions, 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);
|