Allow to add a NULL animated mesh. This enables the usage of readonly

materials (first add a NULL mesh, then set readonly material, then add
the actual mesh ... Adding the mesh first, then re-adding does not work,
since irrlicht tests if there is really a different mesh).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-09-13 23:40:41 +00:00
parent c298f6ef85
commit bc3c68cdaa

View File

@ -753,7 +753,11 @@ void IrrDriver::removeTexture(video::ITexture *t)
*/
scene::IAnimatedMeshSceneNode *IrrDriver::addAnimatedMesh(scene::IAnimatedMesh *mesh)
{
return m_scene_manager->addAnimatedMeshSceneNode(mesh);
return m_scene_manager->addAnimatedMeshSceneNode(mesh, NULL, -1,
core::vector3df(0,0,0),
core::vector3df(0,0,0),
core::vector3df(1,1,1),
/*addIfMeshIsZero*/true);
} // addAnimatedMesh
// ----------------------------------------------------------------------------