Fix ghost kart missing for non-colorizable kart
This commit is contained in:
parent
2d0c945dd8
commit
885e08c559
@ -48,6 +48,7 @@
|
|||||||
#include "IMeshManipulator.h"
|
#include "IMeshManipulator.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <ge_animation.hpp>
|
#include <ge_animation.hpp>
|
||||||
|
#include <ge_render_info.hpp>
|
||||||
#include <ge_spm.hpp>
|
#include <ge_spm.hpp>
|
||||||
|
|
||||||
#define SKELETON_DEBUG 0
|
#define SKELETON_DEBUG 0
|
||||||
@ -1259,7 +1260,9 @@ void KartModel::resetVisualWheelPosition()
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
std::shared_ptr<GE::GERenderInfo> KartModel::getRenderInfo()
|
std::shared_ptr<GE::GERenderInfo> KartModel::getRenderInfo()
|
||||||
{
|
{
|
||||||
return m_support_colorization ? m_render_info : NULL;
|
return m_support_colorization ||
|
||||||
|
(m_render_info && m_render_info->isTransparent()) ?
|
||||||
|
m_render_info : NULL;
|
||||||
} // getRenderInfo
|
} // getRenderInfo
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user