Improve warning messages

This commit is contained in:
Wojtek Figat
2021-03-08 13:12:28 +01:00
parent 2f7a84822a
commit 044234a55b

View File

@@ -326,7 +326,7 @@ bool MeshData::GenerateNormals(float smoothingAngle)
{
if (Positions.IsEmpty() || Indices.IsEmpty())
{
LOG(Warning, "Missing vertex and index data");
LOG(Warning, "Missing vertex or index data to generate normals.");
return true;
}
@@ -446,9 +446,14 @@ bool MeshData::GenerateNormals(float smoothingAngle)
bool MeshData::GenerateTangents(float smoothingAngle)
{
if (Positions.IsEmpty() || Indices.IsEmpty() || Normals.IsEmpty() || UVs.IsEmpty())
if (Positions.IsEmpty() || Indices.IsEmpty())
{
LOG(Warning, "Missing vertex and index data");
LOG(Warning, "Missing vertex or index data to generate tangents.");
return true;
}
if (Normals.IsEmpty() || UVs.IsEmpty())
{
LOG(Warning, "Missing normals or texcoors data to generate tangents.");
return true;
}