mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix crash on wielditem/item entities
bug was introduced in f3032a637c53f3c98fbbed1d3b691898aabe1687
This commit is contained in:
parent
3c0d309643
commit
04961491c1
@ -829,7 +829,8 @@ 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
|
||||||
m_wield_meshnode->setColor(color);
|
if (m_wield_meshnode)
|
||||||
|
m_wield_meshnode->setColor(color);
|
||||||
} else if (m_enable_shaders) {
|
} else if (m_enable_shaders) {
|
||||||
scene::ISceneNode *node = getSceneNode();
|
scene::ISceneNode *node = getSceneNode();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user