Fixed, Crash when trying to animate a model that doesn't contain animations

This commit is contained in:
viktorljung
2016-02-01 10:42:23 +01:00
parent 51075aefc8
commit 6ba87d2942
5 changed files with 26 additions and 14 deletions
+1
View File
@@ -42,6 +42,7 @@ struct ModelJob : RenderJob
FillColor = fillColor;
FillPercentage = fillPercentage;
Skeleton = Model->m_RawModel->m_Skeleton;
if (world->HasComponent(Entity, "Animation") && Skeleton != nullptr) {