blob: 5c8c3ae9a4d4babefe71fc23287f9990c26e5210 [file]
#include "rive/animation/nested_simple_animation.hpp"
#include "rive/animation/linear_animation_instance.hpp"
using namespace rive;
bool NestedSimpleAnimation::advance(float elapsedSeconds, bool newFrame)
{
bool keepGoing = false;
if (m_AnimationInstance != nullptr)
{
if (isPlaying())
{
keepGoing = m_AnimationInstance->advance(
elapsedSeconds * speed(),
m_AnimationInstance.get());
}
if (mix() != 0.0f)
{
m_AnimationInstance->apply(mix());
}
}
return keepGoing;
}