mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
Use inventory_image in the first place for inventory item mesh
This commit is contained in:
parent
b44da4916a
commit
38e7122600
@ -452,11 +452,8 @@ scene::IMesh *getItemMesh(IGameDef *gamedef, const ItemStack &item)
|
||||
|
||||
scene::IMesh *mesh;
|
||||
|
||||
// If wield_image is defined, it overrides everything else
|
||||
if (def.wield_image != "") {
|
||||
mesh = getExtrudedMesh(tsrc, def.wield_image);
|
||||
return mesh;
|
||||
} else if (def.inventory_image != "") {
|
||||
// If inventory_image is defined, it overrides everything else
|
||||
if (def.inventory_image != "") {
|
||||
mesh = getExtrudedMesh(tsrc, def.inventory_image);
|
||||
return mesh;
|
||||
} else if (def.type == ITEM_NODE) {
|
||||
|
Loading…
Reference in New Issue
Block a user