Fixed SkeletalMesh AABB

Former-commit-id: 2b23660f80f3069581246af99c73fda45ee4d3d4
This commit is contained in:
Lynix 2012-12-03 15:06:10 +01:00
parent cc45746799
commit 817119933c
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,7 @@ const NzAxisAlignedBox& NzSkeletalMesh::GetAABB() const
}
#endif
return m_parent->GetSkeleton()->GetAABB();
return m_impl->aabb;
}
nzAnimationType NzSkeletalMesh::GetAnimationType() const
@ -290,6 +290,8 @@ void NzSkeletalMesh::Skin(const NzSkeleton* skeleton) const
if (!m_impl->vertexBuffer->Unmap())
NazaraWarning("Failed to unmap vertex buffer");
m_impl->aabb = skeleton->GetAABB();
}
void NzSkeletalMesh::SetIndexBuffer(const NzIndexBuffer* indexBuffer)