mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add 2D sheet animation for nodes
This commit is contained in:
parent
7057c196c4
commit
a07b032245
8 changed files with 88 additions and 27 deletions
|
@ -570,7 +570,7 @@ void ParticleManager::addNodeParticle(IGameDef* gamedef, scene::ISceneManager* s
|
|||
video::ITexture *texture;
|
||||
|
||||
// Only use first frame of animated texture
|
||||
if(tiles[texid].material_flags & MATERIAL_FLAG_ANIMATION)
|
||||
if (tiles[texid].material_flags & MATERIAL_FLAG_ANIMATION)
|
||||
texture = tiles[texid].frames[0].texture;
|
||||
else
|
||||
texture = tiles[texid].texture;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue