Fixed SkeletalMesh AABB
Former-commit-id: 2b23660f80f3069581246af99c73fda45ee4d3d4
This commit is contained in:
parent
cc45746799
commit
817119933c
|
|
@ -86,7 +86,7 @@ const NzAxisAlignedBox& NzSkeletalMesh::GetAABB() const
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return m_parent->GetSkeleton()->GetAABB();
|
return m_impl->aabb;
|
||||||
}
|
}
|
||||||
|
|
||||||
nzAnimationType NzSkeletalMesh::GetAnimationType() const
|
nzAnimationType NzSkeletalMesh::GetAnimationType() const
|
||||||
|
|
@ -290,6 +290,8 @@ void NzSkeletalMesh::Skin(const NzSkeleton* skeleton) const
|
||||||
|
|
||||||
if (!m_impl->vertexBuffer->Unmap())
|
if (!m_impl->vertexBuffer->Unmap())
|
||||||
NazaraWarning("Failed to unmap vertex buffer");
|
NazaraWarning("Failed to unmap vertex buffer");
|
||||||
|
|
||||||
|
m_impl->aabb = skeleton->GetAABB();
|
||||||
}
|
}
|
||||||
|
|
||||||
void NzSkeletalMesh::SetIndexBuffer(const NzIndexBuffer* indexBuffer)
|
void NzSkeletalMesh::SetIndexBuffer(const NzIndexBuffer* indexBuffer)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue