mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-04 17:25: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);
|
||||
}
|
||||
|
||||
// This does not set m_buffer_info
|
||||
void WieldMeshSceneNode::setExtruded(video::ITexture *texture,
|
||||
video::ITexture *overlay_texture, v3f wield_scale)
|
||||
{
|
||||
@@ -492,7 +493,9 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, Client *client, bool che
|
||||
switch (f.drawtype) {
|
||||
case NDT_AIRLIKE:
|
||||
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_TORCHLIKE:
|
||||
case NDT_RAILLIKE:
|
||||
|
||||
Reference in New Issue
Block a user