Commit ef6f9fd0 authored by bitplane's avatar bitplane

changed CAnimatedMeshSceneNode to use the bounding box of its IAnimatedMesh...

changed CAnimatedMeshSceneNode to use the bounding box of its IAnimatedMesh instead of calling getMesh() and re-skinning. Tested with a few different mesh formats and couldn't see any obvious problems. IAnimatedMesh implementations are now responsible for keeping a maximum bounding box.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@704 dfc29bdd-3216-0410-991c-e03cc46cb475
parent b739adad
...@@ -161,11 +161,7 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs) ...@@ -161,11 +161,7 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs)
if ( Mesh ) if ( Mesh )
{ {
scene::IMesh *m = Mesh->getMesh(CurrentFrameNr, 255, StartFrame, EndFrame); Box = Mesh->getBoundingBox();
if ( m )
{
Box = m->getBoundingBox();
}
} }
IAnimatedMeshSceneNode::OnAnimate ( timeMs ); IAnimatedMeshSceneNode::OnAnimate ( timeMs );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment