2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

chore: cleanup and minor addition

This commit is contained in:
LJW-Dev
2026-04-19 11:31:06 +08:00
committed by Jan Laupetin
parent adb26e2707
commit 968b799938
2 changed files with 1 additions and 27 deletions
+1 -1
View File
@@ -270,7 +270,7 @@ namespace
throw GltfLoadException("Index count must be dividable by 3 for triangles");
const auto faceCount = indexCount / 3u;
if (faceCount > UINT16_MAX)
throw GltfLoadException("Face count exceeded the UINT16_MAX");
throw GltfLoadException(std::format("Face count ({}) exceeded the UINT16_MAX", faceCount));
out_surface.vertexCount = static_cast<uint16_t>(vertexCount);
out_surface.triCount = static_cast<uint16_t>(faceCount);