From 649dca4d16786ed4e5b74878f56b86dea4f02542 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 22 May 2013 20:20:05 +0100 Subject: [PATCH] Fix multiple texture support for animated meshnodes. --- src/content_cao.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content_cao.cpp b/src/content_cao.cpp index f79d0d6f6..57bbb30b9 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1308,7 +1308,7 @@ public: } // Set material flags and texture - m_animated_meshnode->setMaterialTexture(i, texture); + m_animated_meshnode->getMaterial(i).TextureLayer[0].Texture = texture; video::SMaterial& material = m_animated_meshnode->getMaterial(i); material.setFlag(video::EMF_LIGHTING, false); material.setFlag(video::EMF_BILINEAR_FILTER, false);