Fix multiple texture support for animated meshnodes.
authorstujones11 <stujones11@server.fake>
Wed, 22 May 2013 19:20:05 +0000 (20:20 +0100)
committerKahrl <kahrl@gmx.net>
Mon, 3 Jun 2013 21:31:08 +0000 (23:31 +0200)
src/content_cao.cpp

index f79d0d6f62c78d63467b4b75180d6687aae33809..57bbb30b960f8152b19af4831b15680283f72ead 100644 (file)
@@ -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);