BoneAttachmentSystem fix for not having a skeleton

This commit is contained in:
viktorljung
2016-02-09 23:03:49 +01:00
parent 001e2441dd
commit daa96baab5
@@ -21,6 +21,11 @@ void BoneAttachmentSystem::UpdateComponent(EntityWrapper& entity, ComponentWrapp
Skeleton* skeleton = model->m_RawModel->m_Skeleton;
if(skeleton == nullptr) {
return;
}
const Skeleton::Animation* animation = skeleton->GetAnimation(parent["Animation"]["AnimationName1"]);
if (!animation) {