forked from Mirrorlandia_minetest/minetest
parent
a89afe1229
commit
c7bcebb628
@ -457,6 +457,10 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che
|
|||||||
material.setFlag(video::EMF_BILINEAR_FILTER, m_bilinear_filter);
|
material.setFlag(video::EMF_BILINEAR_FILTER, m_bilinear_filter);
|
||||||
material.setFlag(video::EMF_TRILINEAR_FILTER, m_trilinear_filter);
|
material.setFlag(video::EMF_TRILINEAR_FILTER, m_trilinear_filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize the color
|
||||||
|
if (!m_lighting)
|
||||||
|
setColor(video::SColor(0xFFFFFFFF));
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (!def.inventory_image.empty()) {
|
if (!def.inventory_image.empty()) {
|
||||||
@ -469,6 +473,10 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che
|
|||||||
m_colors.emplace_back();
|
m_colors.emplace_back();
|
||||||
// overlay is white, if present
|
// overlay is white, if present
|
||||||
m_colors.emplace_back(true, video::SColor(0xFFFFFFFF));
|
m_colors.emplace_back(true, video::SColor(0xFFFFFFFF));
|
||||||
|
|
||||||
|
// initialize the color
|
||||||
|
if (!m_lighting)
|
||||||
|
setColor(video::SColor(0xFFFFFFFF));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user