Changed Animation and BoneAttachment "Name" field to "AnimationName" and "BoneName"

This commit is contained in:
viktorljung
2016-01-27 17:27:34 +01:00
parent 405002777c
commit 2ec5023752
9 changed files with 19 additions and 27 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ struct ModelJob : RenderJob
if (world->HasComponent(Entity, "Animation") && Skeleton != nullptr) {
auto animationComponent = world->GetComponent(Entity, "Animation");
Animation = model->m_RawModel->m_Skeleton->GetAnimation(animationComponent["Name"]);
Animation = model->m_RawModel->m_Skeleton->GetAnimation(animationComponent["AnimationName"]);
AnimationTime = (double)animationComponent["Time"];
}
};