Fix multiple texture support for animated meshnodes
authorstujones11 <stujones11@server.fake>
Tue, 11 Jun 2013 20:40:59 +0000 (21:40 +0100)
committerPilzAdam <pilzadam@minetest.net>
Tue, 9 Jul 2013 22:22:21 +0000 (00:22 +0200)
src/content_cao.cpp

index ece284343eb05b5df780d79d639dab1b241fc805..7c76992429472dc1917be1f90c7a5b36be29c1da 100644 (file)
@@ -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);