From ef6f9fd0066115b692075e6b2a983c452b747a20 Mon Sep 17 00:00:00 2001 From: bitplane Date: Sun, 10 Jun 2007 01:29:10 +0000 Subject: [PATCH] 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 --- source/Irrlicht/CAnimatedMeshSceneNode.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/source/Irrlicht/CAnimatedMeshSceneNode.cpp b/source/Irrlicht/CAnimatedMeshSceneNode.cpp index def0357b..a2cf8552 100644 --- a/source/Irrlicht/CAnimatedMeshSceneNode.cpp +++ b/source/Irrlicht/CAnimatedMeshSceneNode.cpp @@ -161,11 +161,7 @@ void CAnimatedMeshSceneNode::OnAnimate(u32 timeMs) if ( Mesh ) { - scene::IMesh *m = Mesh->getMesh(CurrentFrameNr, 255, StartFrame, EndFrame); - if ( m ) - { - Box = m->getBoundingBox(); - } + Box = Mesh->getBoundingBox(); } IAnimatedMeshSceneNode::OnAnimate ( timeMs );