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:
parent
3a607c545c
commit
77290934b7
1 changed files with 1 additions and 2 deletions
|
@ -814,8 +814,7 @@ bool MapBlockMesh::animate(bool faraway, float time, int crack,
|
|||
|
||||
u16 frame = it.second.first.getCurrentFrame();
|
||||
std::string s = it.second.second[frame] + itos(crack);
|
||||
u32 new_texture_id = 0;
|
||||
video::ITexture *new_texture = m_tsrc->getTextureForMesh(s, &new_texture_id);
|
||||
video::ITexture *new_texture = m_tsrc->getTextureForMesh(s);
|
||||
buf->getMaterial().setTexture(0, new_texture);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue