{
video::SColor color(255, light, light, light);
- if (m_enable_shaders) {
+ if (m_prop.visual == "wielditem" || m_prop.visual == "item") {
+ // Since these types of visuals are using their own shader
+ // they should be handled separately
+ m_wield_meshnode->setColor(color);
+ } else if (m_enable_shaders) {
scene::ISceneNode *node = getSceneNode();
if (node == nullptr)
setMeshColor(m_meshnode->getMesh(), color);
} else if (m_animated_meshnode) {
setAnimatedMeshColor(m_animated_meshnode, color);
- } else if (m_wield_meshnode) {
- m_wield_meshnode->setColor(color);
} else if (m_spritenode) {
m_spritenode->setColor(color);
}