File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -826,7 +826,11 @@ void GenericCAO::setNodeLight(u8 light)
826
826
{
827
827
video::SColor color (255 , light, light, light);
828
828
829
- if (m_enable_shaders) {
829
+ if (m_prop.visual == " wielditem" || m_prop.visual == " item" ) {
830
+ // Since these types of visuals are using their own shader
831
+ // they should be handled separately
832
+ m_wield_meshnode->setColor (color);
833
+ } else if (m_enable_shaders) {
830
834
scene::ISceneNode *node = getSceneNode ();
831
835
832
836
if (node == nullptr )
@@ -850,8 +854,6 @@ void GenericCAO::setNodeLight(u8 light)
850
854
setMeshColor (m_meshnode->getMesh (), color);
851
855
} else if (m_animated_meshnode) {
852
856
setAnimatedMeshColor (m_animated_meshnode, color);
853
- } else if (m_wield_meshnode) {
854
- m_wield_meshnode->setColor (color);
855
857
} else if (m_spritenode) {
856
858
m_spritenode->setColor (color);
857
859
}
You can’t perform that action at this time.
0 commit comments