Don't initialize ItemCAOs with stick.png
authorPerttu Ahola <celeron55@gmail.com>
Sat, 3 Dec 2011 22:45:12 +0000 (00:45 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 3 Dec 2011 22:45:12 +0000 (00:45 +0200)
src/content_cao.cpp

index 0531fe489fa81e1f20ee47cf393c05cd11804118..7563cfcc6a0ed25fb6b1a0f04fa2f56f650d191c 100644 (file)
@@ -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;