Moved AxisAlignedBox to mathematic module
Former-commit-id: 2cb5b151941a431b5c12457f0decf7b39195052d
This commit is contained in:
@@ -132,7 +132,7 @@ struct NzSkeletalMeshImpl
|
||||
{
|
||||
std::vector<NzVertexWeight> vertexWeights;
|
||||
std::vector<NzWeight> weights;
|
||||
NzAxisAlignedBox aabb;
|
||||
NzAxisAlignedBoxf aabb;
|
||||
nzUInt8* bindPoseBuffer;
|
||||
const NzIndexBuffer* indexBuffer = nullptr;
|
||||
NzVertexBuffer* vertexBuffer;
|
||||
@@ -208,13 +208,15 @@ void NzSkeletalMesh::Finish()
|
||||
Skin();
|
||||
}
|
||||
|
||||
const NzAxisAlignedBox& NzSkeletalMesh::GetAABB() const
|
||||
const NzAxisAlignedBoxf& NzSkeletalMesh::GetAABB() const
|
||||
{
|
||||
#if NAZARA_UTILITY_SAFE
|
||||
if (!m_impl)
|
||||
{
|
||||
NazaraError("Skeletal mesh not created");
|
||||
return NzAxisAlignedBox::Null;
|
||||
|
||||
static NzAxisAlignedBoxf dummy(nzExtend_Null);
|
||||
return dummy;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user