mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-05 09:45:30 +01:00
Fix missing airlike buffer info
This commit is contained in:
@@ -282,6 +282,7 @@ void WieldMeshSceneNode::setExtruded(const TileDef &d0, const TileLayer &l0,
|
|||||||
m_buffer_info.emplace_back(1, l1);
|
m_buffer_info.emplace_back(1, l1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This does not set m_buffer_info
|
||||||
void WieldMeshSceneNode::setExtruded(video::ITexture *texture,
|
void WieldMeshSceneNode::setExtruded(video::ITexture *texture,
|
||||||
video::ITexture *overlay_texture, v3f wield_scale)
|
video::ITexture *overlay_texture, v3f wield_scale)
|
||||||
{
|
{
|
||||||
@@ -492,7 +493,9 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che
|
|||||||
switch (f.drawtype) {
|
switch (f.drawtype) {
|
||||||
case NDT_AIRLIKE:
|
case NDT_AIRLIKE:
|
||||||
setExtruded(tsrc->getTexture("no_texture_airlike.png"), nullptr, v3f(1));
|
setExtruded(tsrc->getTexture("no_texture_airlike.png"), nullptr, v3f(1));
|
||||||
break;
|
m_buffer_info.emplace_back(0);
|
||||||
|
setColor(video::SColor(0xFFFFFFFF));
|
||||||
|
return;
|
||||||
case NDT_SIGNLIKE:
|
case NDT_SIGNLIKE:
|
||||||
case NDT_TORCHLIKE:
|
case NDT_TORCHLIKE:
|
||||||
case NDT_RAILLIKE:
|
case NDT_RAILLIKE:
|
||||||
|
|||||||
Reference in New Issue
Block a user