From: Perttu Ahola Date: Sat, 3 Dec 2011 22:45:12 +0000 (+0200) Subject: Don't initialize ItemCAOs with stick.png X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=3a689a5c4faa8729ee3f94f4528e196aa5ef34a7;p=zefram%2Fminetest%2Fminetest_engine.git Don't initialize ItemCAOs with stick.png --- diff --git a/src/content_cao.cpp b/src/content_cao.cpp index 0531fe48..7563cfcc 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -576,9 +576,8 @@ void ItemCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc, // Set material buf->getMaterial().setFlag(video::EMF_LIGHTING, false); buf->getMaterial().setFlag(video::EMF_BACK_FACE_CULLING, false); - //buf->getMaterial().setTexture(0, NULL); - // Initialize with the stick texture - buf->getMaterial().setTexture(0, tsrc->getTextureRaw("stick.png")); + // Initialize with a generated placeholder texture + buf->getMaterial().setTexture(0, tsrc->getTextureRaw("")); buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false); buf->getMaterial().setFlag(video::EMF_FOG_ENABLE, true); buf->getMaterial().MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL;