Merge pull request #28 from Gawaboumga/master
Consistency update Former-commit-id: 1c31be9c967cf2e7d9d5d89d46444bfaed11a142
This commit is contained in:
@@ -632,19 +632,19 @@ bool NzMD5MeshParser::ParseMesh()
|
||||
}
|
||||
}
|
||||
|
||||
if (m_meshes[m_meshIndex].triangles.size() == 0)
|
||||
if (m_meshes[m_meshIndex].triangles.empty())
|
||||
{
|
||||
NazaraError("Mesh has no triangles");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m_meshes[m_meshIndex].vertices.size() == 0)
|
||||
if (m_meshes[m_meshIndex].vertices.empty())
|
||||
{
|
||||
NazaraError("Mesh has no vertices");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m_meshes[m_meshIndex].weights.size() == 0)
|
||||
if (m_meshes[m_meshIndex].weights.empty())
|
||||
{
|
||||
NazaraError("Mesh has no weights");
|
||||
return false;
|
||||
|
||||
@@ -167,6 +167,7 @@ bool NzVertexDeclaration::IsTypeSupported(nzComponentType type)
|
||||
case nzComponentType_Int2:
|
||||
case nzComponentType_Int3:
|
||||
case nzComponentType_Int4:
|
||||
case nzComponentType_Quaternion:
|
||||
return true;
|
||||
|
||||
case nzComponentType_Quaternion:
|
||||
|
||||
Reference in New Issue
Block a user