1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

getTextureForMesh

Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
cx384 2025-09-21 21:43:51 +02:00 committed by GitHub
parent 3a607c545c
commit 77290934b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -814,8 +814,7 @@ bool MapBlockMesh::animate(bool faraway, float time, int crack,
u16 frame = it.second.first.getCurrentFrame(); u16 frame = it.second.first.getCurrentFrame();
std::string s = it.second.second[frame] + itos(crack); std::string s = it.second.second[frame] + itos(crack);
u32 new_texture_id = 0; video::ITexture *new_texture = m_tsrc->getTextureForMesh(s);
video::ITexture *new_texture = m_tsrc->getTextureForMesh(s, &new_texture_id);
buf->getMaterial().setTexture(0, new_texture); buf->getMaterial().setTexture(0, new_texture);
} }
} }