summaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-11-30 18:12:32 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-12-02 00:38:26 +0200
commitbee170570de7a796ac7b5ba6c0b39b253380b5e3 (patch)
tree66b8d4317df37790edb1caf3b4529a73c48639a5 /src/guiFormSpecMenu.cpp
parentba73e75ef9b59608c78bff09b7808f076bef014b (diff)
downloadminetest-bee170570de7a796ac7b5ba6c0b39b253380b5e3.tar.gz
minetest-bee170570de7a796ac7b5ba6c0b39b253380b5e3.tar.bz2
minetest-bee170570de7a796ac7b5ba6c0b39b253380b5e3.zip
On-demand item meshes and textures
Diffstat (limited to 'src/guiFormSpecMenu.cpp')
-rw-r--r--src/guiFormSpecMenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp
index 66ac4c08f..986f30494 100644
--- a/src/guiFormSpecMenu.cpp
+++ b/src/guiFormSpecMenu.cpp
@@ -46,7 +46,7 @@ void drawItemStack(video::IVideoDriver *driver,
return;
const ItemDefinition &def = item.getDefinition(gamedef->idef());
- video::ITexture *texture = def.inventory_texture;
+ video::ITexture *texture = gamedef->idef()->getInventoryTexture(def.name, gamedef);
// Draw the inventory texture
if(texture != NULL)
@@ -519,7 +519,7 @@ void GUIFormSpecMenu::regenerateGui(v2u32 screensize)
IItemDefManager *idef = m_gamedef->idef();
ItemStack item;
item.deSerialize(fimage, idef);
- video::ITexture *texture = item.getDefinition(idef).inventory_texture;
+ video::ITexture *texture = idef->getInventoryTexture(item.getDefinition(idef).name, m_gamedef);
std::string tooltip = item.getDefinition(idef).description;
FieldSpec spec = FieldSpec(
narrow_to_wide(fname.c_str()),