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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user