blob: 23e4ee0932787e932b4c485c399f09dedeafaa0e [file] [log] [blame]
#include "rive/animation/nested_simple_animation.hpp"
#include "rive/animation/linear_animation_instance.hpp"
using namespace rive;
void NestedSimpleAnimation::advance(float elapsedSeconds) {
if (m_AnimationInstance != nullptr) {
if (isPlaying()) {
m_AnimationInstance->advance(elapsedSeconds * speed());
}
m_AnimationInstance->apply(mix());
}
}