blob: 0f16ec5e7e8e2933c37d8fa82a6e1bd04fd9ecd1 [file] [log] [blame]
#include "rive/component.hpp"
#include "rive/constraints/list_follow_path_constraint.hpp"
#include "rive/constraints/list_constraint.hpp"
using namespace rive;
ListConstraint* ListConstraint::from(Component* component)
{
switch (component->coreType())
{
case ListFollowPathConstraintBase::typeKey:
return component->as<ListFollowPathConstraint>();
}
return nullptr;
}