SubMeshs are now valid even when not animated

Former-commit-id: 5bd6289d30f4f6ffa1fcaf8d946aa9aba9cf7131
This commit is contained in:
Lynix
2012-12-03 16:24:47 +01:00
parent 817119933c
commit 2e40ad832e
6 changed files with 27 additions and 0 deletions

View File

@@ -76,6 +76,19 @@ void NzSkeletalMesh::Destroy()
}
}
void NzSkeletalMesh::Finish()
{
#if NAZARA_UTILITY_SAFE
if (!m_impl)
{
NazaraError("Skeletal mesh not created");
return;
}
#endif
Skin();
}
const NzAxisAlignedBox& NzSkeletalMesh::GetAABB() const
{
#if NAZARA_UTILITY_SAFE