Fixed bounding volume not being updated

Former-commit-id: 809faf0ed66916b1598cca11f749b31961f2e184
This commit is contained in:
Lynix 2013-06-18 16:38:30 +02:00
parent 6cd6bc8ab8
commit 433c36f176
1 changed files with 1 additions and 0 deletions

View File

@ -474,6 +474,7 @@ void NzModel::SetMesh(NzMesh* mesh)
if (m_mesh) if (m_mesh)
{ {
m_boundingVolume.MakeNull();
m_boundingVolumeUpdated = false; m_boundingVolumeUpdated = false;
if (m_mesh->GetAnimationType() == nzAnimationType_Skeletal) if (m_mesh->GetAnimationType() == nzAnimationType_Skeletal)