BoneAttachmentSystem fix for not having a skeleton
This commit is contained in:
@@ -21,6 +21,11 @@ void BoneAttachmentSystem::UpdateComponent(EntityWrapper& entity, ComponentWrapp
|
|||||||
|
|
||||||
|
|
||||||
Skeleton* skeleton = model->m_RawModel->m_Skeleton;
|
Skeleton* skeleton = model->m_RawModel->m_Skeleton;
|
||||||
|
|
||||||
|
if(skeleton == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const Skeleton::Animation* animation = skeleton->GetAnimation(parent["Animation"]["AnimationName1"]);
|
const Skeleton::Animation* animation = skeleton->GetAnimation(parent["Animation"]["AnimationName1"]);
|
||||||
|
|
||||||
if (!animation) {
|
if (!animation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user