From: stujones11 Date: Tue, 11 Jun 2013 20:40:59 +0000 (+0100) Subject: Fix multiple texture support for animated meshnodes X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=e8f201cefa073f04d3c1e56855d8676b607e3d5d;p=zefram%2Fminetest%2Fminetest_engine.git Fix multiple texture support for animated meshnodes --- diff --git a/src/content_cao.cpp b/src/content_cao.cpp index ece28434..7c769924 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1308,8 +1308,8 @@ public: } // Set material flags and texture - m_animated_meshnode->setMaterialTexture(i, texture); video::SMaterial& material = m_animated_meshnode->getMaterial(i); + material.TextureLayer[0].Texture = texture; material.setFlag(video::EMF_LIGHTING, false); material.setFlag(video::EMF_BILINEAR_FILTER, false);