mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-26 16:07:31 +01:00
Avoid reskinning joints for animated meshes twice for each frame.
This commit is contained in:
parent
7d3142b969
commit
3de3ff524a
@ -236,15 +236,6 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs)
|
|||||||
|
|
||||||
// set CurrentFrameNr
|
// set CurrentFrameNr
|
||||||
buildFrameNr(timeMs-LastTimeMs);
|
buildFrameNr(timeMs-LastTimeMs);
|
||||||
|
|
||||||
// update bbox
|
|
||||||
if (Mesh)
|
|
||||||
{
|
|
||||||
scene::IMesh * mesh = getMeshForCurrentFrame();
|
|
||||||
|
|
||||||
if (mesh)
|
|
||||||
Box = mesh->getBoundingBox();
|
|
||||||
}
|
|
||||||
LastTimeMs = timeMs;
|
LastTimeMs = timeMs;
|
||||||
|
|
||||||
IAnimatedMeshSceneNode::OnAnimate(timeMs);
|
IAnimatedMeshSceneNode::OnAnimate(timeMs);
|
||||||
|
Loading…
Reference in New Issue
Block a user