Improve SurfaceTool::generate_tangents UV error message

Fixes #92395.
This commit is contained in:
maski 2024-06-19 02:36:07 +05:30 committed by Rémi Verschelde
parent b75f0485ba
commit 734fab7f20
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1158,7 +1158,7 @@ void SurfaceTool::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, cons
}
void SurfaceTool::generate_tangents() {
ERR_FAIL_COND(!(format & Mesh::ARRAY_FORMAT_TEX_UV));
ERR_FAIL_COND_MSG(!(format & Mesh::ARRAY_FORMAT_TEX_UV), "UVs are required to generate tangents.");
ERR_FAIL_COND(!(format & Mesh::ARRAY_FORMAT_NORMAL));
SMikkTSpaceInterface mkif;