Revert "Fixed mesh centering"
This reverts commit 504042119962c2ab55fe8ef9bb16bcc878fa1b38 [formerly fae2cf41a63c7ce599c227344478567b1f12f130]. Conflicts: src/Nazara/Utility/Loaders/MD5Mesh/Loader.cpp Former-commit-id: 6bd25fd7216121cce6879d74c6c98fbba545f2cf
This commit is contained in:
@@ -23,9 +23,7 @@ NzStaticMesh::~NzStaticMesh()
|
||||
|
||||
void NzStaticMesh::Center()
|
||||
{
|
||||
///DOC: Invalider l'AABB après ça
|
||||
NzBoxf aabb(m_parent->GetAABB());
|
||||
NzVector3f offset(aabb.x + aabb.width/2.f, aabb.y + aabb.height/2.f, aabb.z + aabb.depth/2.f);
|
||||
NzVector3f offset(m_aabb.x + m_aabb.width/2.f, m_aabb.y + m_aabb.height/2.f, m_aabb.z + m_aabb.depth/2.f);
|
||||
|
||||
NzVertexMapper mapper(this);
|
||||
NzSparsePtr<NzVector3f> position = mapper.GetComponentPtr<NzVector3f>(nzVertexComponent_Position);
|
||||
|
||||
Reference in New Issue
Block a user