Skip to content

Commit bfa608b

Browse files
committed
Revert "Fix multiple texture support for animated meshnodes." (broke existing models)
This reverts commit 649dca4.
1 parent 7cb5217 commit bfa608b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content_cao.cpp

Lines changed: 1 addition & 1 deletion
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->getMaterial(i).TextureLayer[0].Texture = texture;
1311+
m_animated_meshnode->setMaterialTexture(i, 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)