Undo a few bogus optimisations to the B3D exporter *blush*

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-08-07 20:20:12 +00:00
parent da11b8c1c9
commit f45f06b994
2 changed files with 6 additions and 1 deletions

View File

@ -541,9 +541,12 @@ scene::ISceneNode* IrrDriver::addWaterNode(scene::IMesh *mesh,
float wave_speed,
float wave_length)
{
return m_scene_manager->addWaterSurfaceSceneNode(mesh,
mesh->setMaterialFlag(EMF_GOURAUD_SHADING, true);
scene::ISceneNode* out = m_scene_manager->addWaterSurfaceSceneNode(mesh,
wave_height, wave_speed,
wave_length);
out->getMaterial(0).setFlag(EMF_GOURAUD_SHADING, true);
return out;
} // addWaterNode
// ----------------------------------------------------------------------------

View File

@ -1022,6 +1022,8 @@ void Track::createWater(const XMLNode &node)
scene_node->setRotation(hpr);
m_all_nodes.push_back(scene_node);
handleAnimatedTextures(scene_node, node);
scene_node->getMaterial(0).setFlag(video::EMF_GOURAUD_SHADING, true);
} // createWater
// ----------------------------------------------------------------------------