Create a kart shadow only of shadow texture exists.

If the image doesn't exist, in some cases it can draw non-transparent square below the kart, which is unwanted.
This commit is contained in:
Deve 2017-02-22 20:47:08 +01:00
parent 02d3bd2c2b
commit 2ef6652183

View File

@ -2557,7 +2557,8 @@ void Kart::loadData(RaceManager::KartType type, bool is_animated_model)
->isFogEnabled() );
}
#ifndef SERVER_ONLY
if (!CVS->supportsShadows())
if (!CVS->supportsShadows() &&
m_kart_properties->getShadowTexture() != NULL)
{
m_shadow = new Shadow(m_kart_properties.get(), m_node,
-m_kart_model->getLowestPoint());