Use inventory_image in the first place for inventory item mesh

master
RealBadAngel 2016-02-08 01:40:05 +01:00 committed by est31
parent b44da4916a
commit 38e7122600
1 changed files with 2 additions and 5 deletions

View File

@ -452,11 +452,8 @@ scene::IMesh *getItemMesh(IGameDef *gamedef, const ItemStack &item)
scene::IMesh *mesh; scene::IMesh *mesh;
// If wield_image is defined, it overrides everything else // If inventory_image is defined, it overrides everything else
if (def.wield_image != "") { if (def.inventory_image != "") {
mesh = getExtrudedMesh(tsrc, def.wield_image);
return mesh;
} else if (def.inventory_image != "") {
mesh = getExtrudedMesh(tsrc, def.inventory_image); mesh = getExtrudedMesh(tsrc, def.inventory_image);
return mesh; return mesh;
} else if (def.type == ITEM_NODE) { } else if (def.type == ITEM_NODE) {