Fix sky not cleared when exiting race, would show up on kart selection screen

This commit is contained in:
Marianne Gagnon
2014-06-04 20:29:37 -04:00
parent bed088bd51
commit 9af15c7bdf
2 changed files with 4 additions and 0 deletions

View File

@@ -1576,6 +1576,8 @@ void IrrDriver::onUnloadWorld()
{
delete m_rtts;
m_rtts = NULL;
suppressSkyBox();
}
// ----------------------------------------------------------------------------
/** Sets the ambient light.

View File

@@ -196,6 +196,8 @@ void ModelViewWidget::setupRTTScene(PtrVector<scene::IMesh, REF>& mesh,
AlignedArray<Vec3>& mesh_scale,
const std::vector<int>& model_frames)
{
irr_driver->suppressSkyBox();
if (m_rtt_main_node != NULL) m_rtt_main_node->remove();
if (m_light != NULL) m_light->remove();
if (m_camera != NULL) m_camera->remove();