mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-23 16:08:51 -05:00
Fix camera MaterialItem draw logic
This commit is contained in:
parent
f68fa667c8
commit
a5545593ba
@ -464,11 +464,19 @@ void Camera::wield(const InventoryItem* item, IGameDef *gamedef)
|
||||
// A block-type material
|
||||
MaterialItem* mat_item = (MaterialItem*) item;
|
||||
content_t content = mat_item->getMaterial();
|
||||
if (ndef->get(content).solidness || ndef->get(content).visual_solidness)
|
||||
{
|
||||
switch(ndef->get(content).drawtype){
|
||||
case NDT_NORMAL:
|
||||
case NDT_LIQUID:
|
||||
case NDT_FLOWINGLIQUID:
|
||||
case NDT_GLASSLIKE:
|
||||
case NDT_ALLFACES:
|
||||
case NDT_ALLFACES_OPTIONAL:
|
||||
m_wieldnode->setCube(ndef->get(content).tiles);
|
||||
m_wieldnode->setScale(v3f(30));
|
||||
isCube = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user