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:
parent
c298f6ef85
commit
bc3c68cdaa
@ -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
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user