aboutsummaryrefslogtreecommitdiff
path: root/src/wieldmesh.cpp
diff options
context:
space:
mode:
authorSapier <sapier AT gmx dot net>2015-12-29 19:53:38 +0100
committerSapier <sapier AT gmx dot net>2015-12-29 19:53:38 +0100
commit25d128da36bb5aaa27f0dcd32b86fb5616684426 (patch)
treea372c94fed2009568d6f1deb709258a9f1e589a3 /src/wieldmesh.cpp
parent61cb4d52a6873a0af69bb8c9a295586f09b2c27a (diff)
downloadminetest-25d128da36bb5aaa27f0dcd32b86fb5616684426.tar.xz
Revert "Add support for using arbitrary meshes as items"
This reverts commit 91bafceee6606fab79db1bde4cba01b84fed65c7. Reverted due to missinterpretation of agreement, obvious dislike and me not interested in doing fights for feature I don't actually need
Diffstat (limited to 'src/wieldmesh.cpp')
-rw-r--r--src/wieldmesh.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp
index 77a5cf73a..a022754a6 100644
--- a/src/wieldmesh.cpp
+++ b/src/wieldmesh.cpp
@@ -386,20 +386,6 @@ void WieldMeshSceneNode::setItem(const ItemStack &item, IGameDef *gamedef)
}
return;
}
- else if (idef->getWieldMesh(def.name, gamedef) != 0) {
- irr::scene::IMesh * mesh = idef->getWieldMesh(def.name, gamedef);
- m_meshnode->setMesh(mesh);
- u32 material_count = m_meshnode->getMaterialCount();
- for (u32 i = 0; i < material_count; ++i) {
- video::SMaterial &material = m_meshnode->getMaterial(i);
- material.setFlag(video::EMF_BACK_FACE_CULLING, true);
- material.setFlag(video::EMF_BILINEAR_FILTER, m_bilinear_filter);
- material.setFlag(video::EMF_TRILINEAR_FILTER, m_trilinear_filter);
- material.MaterialType = m_material_type;
- material.setTexture(0, tsrc->getTexture(def.meshtexture));
- }
- return;
- }
else if (def.inventory_image != "") {
setExtruded(def.inventory_image, def.wield_scale, tsrc, 1);
return;