Skip to content

Commit 649dca4

Browse files
stujones11kahrl
stujones11
authored andcommittedJun 3, 2013
Fix multiple texture support for animated meshnodes.
1 parent 601ab85 commit 649dca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/content_cao.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,7 @@ class GenericCAO : public ClientActiveObject
13081308
}
13091309

13101310
// Set material flags and texture
1311-
m_animated_meshnode->setMaterialTexture(i, texture);
1311+
m_animated_meshnode->getMaterial(i).TextureLayer[0].Texture = texture;
13121312
video::SMaterial& material = m_animated_meshnode->getMaterial(i);
13131313
material.setFlag(video::EMF_LIGHTING, false);
13141314
material.setFlag(video::EMF_BILINEAR_FILTER, false);

0 commit comments

Comments
 (0)