blob: 631194b3696dc892b34ed9a8a60dbb10ca34ae52 [file] [log] [blame]
#include "rive/animation/nested_linear_animation.hpp"
#include "rive/animation/linear_animation_instance.hpp"
using namespace rive;
NestedLinearAnimation::~NestedLinearAnimation() { delete m_AnimationInstance; }
void NestedLinearAnimation::initializeAnimation(Artboard* artboard) {
assert(m_AnimationInstance == nullptr);
m_AnimationInstance =
new LinearAnimationInstance(artboard->animation(animationId()));
}