mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 18:55:29 +02:00
Fix animations not being restartable (#15016)
This commit is contained in:
@@ -55,10 +55,7 @@ const ItemGroupList &UnitSAO::getArmorGroups() const
|
||||
void UnitSAO::setAnimation(
|
||||
v2f frame_range, float frame_speed, float frame_blend, bool frame_loop)
|
||||
{
|
||||
if (std::tie(m_animation_range, m_animation_speed, m_animation_blend,
|
||||
m_animation_loop) ==
|
||||
std::tie(frame_range, frame_speed, frame_blend, frame_loop))
|
||||
return; // no change
|
||||
// Note: Always resend (even if parameters are unchanged) to restart animations.
|
||||
m_animation_range = frame_range;
|
||||
m_animation_speed = frame_speed;
|
||||
m_animation_blend = frame_blend;
|
||||
|
Reference in New Issue
Block a user