Fixed ignoring of materials.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-02-13 23:14:23 +00:00
parent f8c846d0bf
commit ccc8ada054

View File

@@ -437,6 +437,7 @@ void Track::convertTrackToBullet(scene::ISceneNode *node)
{
std::string image = std::string(core::stringc(t->getName()).c_str());
material=material_manager->getMaterial(StringUtils::getBasename(image));
if(material->isIgnore()) continue;
// Special gfx meshes will not be stored as a normal physics body,
// but converted to a collision body only, so that ray tests
// against them can be done.