mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
3c0d309643
commit
04961491c1
1 changed files with 2 additions and 1 deletions
|
@ -829,6 +829,7 @@ void GenericCAO::setNodeLight(u8 light)
|
||||||
if (m_prop.visual == "wielditem" || m_prop.visual == "item") {
|
if (m_prop.visual == "wielditem" || m_prop.visual == "item") {
|
||||||
// Since these types of visuals are using their own shader
|
// Since these types of visuals are using their own shader
|
||||||
// they should be handled separately
|
// they should be handled separately
|
||||||
|
if (m_wield_meshnode)
|
||||||
m_wield_meshnode->setColor(color);
|
m_wield_meshnode->setColor(color);
|
||||||
} else if (m_enable_shaders) {
|
} else if (m_enable_shaders) {
|
||||||
scene::ISceneNode *node = getSceneNode();
|
scene::ISceneNode *node = getSceneNode();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue