blob: 5725944b0a5b5f310bf7d107ce691fcdd5dd8be9 [file] [log] [blame]
#include "rive/bones/skinnable.hpp"
#include "rive/shapes/points_path.hpp"
#include "rive/shapes/mesh.hpp"
using namespace rive;
Skinnable* Skinnable::from(Component* component) {
switch (component->coreType()) {
case PointsPath::typeKey:
return component->as<PointsPath>();
case Mesh::typeKey:
return component->as<Mesh>();
}
return nullptr;
}
void Skinnable::skin(Skin* skin) { m_Skin = skin; }