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