From 2ef66521831b95507a80fbfb1ddb4dffa2048aa8 Mon Sep 17 00:00:00 2001 From: Deve Date: Wed, 22 Feb 2017 20:47:08 +0100 Subject: [PATCH] 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. --- src/karts/kart.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/karts/kart.cpp b/src/karts/kart.cpp index 43f54ae84..13b820485 100644 --- a/src/karts/kart.cpp +++ b/src/karts/kart.cpp @@ -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());