1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00
This commit is contained in:
cx384 2025-09-22 12:24:43 +02:00
parent bd6d2ecb5f
commit 0aa154a656
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ void AnimationInfo::updateTexture(video::SMaterial &material, float animation_ti
assert(m_frame < m_frames->size());
material.setTexture(0, (*m_frames)[m_frame].texture);
}
};
}
bool AnimationInfo::needUpdate(float animation_time)
{
@ -23,7 +23,7 @@ bool AnimationInfo::needUpdate(float animation_time)
return true;
}
return false;
};
}
void TileLayer::applyMaterialOptions(video::SMaterial &material, int layer) const
{

View file

@ -169,7 +169,7 @@ struct AnimationInfo {
bool needUpdate(float animation_time);
// Returns last used frame
u16 getCurrentFrame() const { return m_frame; };
u16 getCurrentFrame() const { return m_frame; }
private:
u16 m_frame = 0; // last animation frame