Graphics/SkeletalModel: Fix crash
Former-commit-id: 75114644bb37796860854102fbd547aa1c50f51a
This commit is contained in:
parent
0f7948ea4c
commit
436f5002b2
|
|
@ -33,6 +33,9 @@ m_animationEnabled(true)
|
|||
|
||||
void NzSkeletalModel::AddToRenderQueue(NzAbstractRenderQueue* renderQueue, const NzMatrix4f& transformMatrix) const
|
||||
{
|
||||
if (!m_mesh)
|
||||
return;
|
||||
|
||||
unsigned int submeshCount = m_mesh->GetSubMeshCount();
|
||||
for (unsigned int i = 0; i < submeshCount; ++i)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue