Forget about the cached mesh frame for animated mesh scene nodes when the mesh is changed.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1963 dfc29bdd-3216-0410-991c-e03cc46cb475
master
Rogerborg 2008-12-17 11:28:16 +00:00
parent e8cbe44b1f
commit 0025933fb0
3 changed files with 4 additions and 1 deletions

View File

@ -822,6 +822,9 @@ void CAnimatedMeshSceneNode::setMesh(IAnimatedMesh* mesh)
Mesh = mesh;
// Forget about the stored frame of any existing mesh.
MeshForCurrentFrame = 0;
// get materials and bounding box
Box = Mesh->getBoundingBox();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 23 KiB

View File

@ -1,2 +1,2 @@
Test suite pass at GMT Tue Dec 16 17:39:02 2008
Test suite pass at GMT Wed Dec 17 11:27:14 2008