mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
Merge pull request #93326 from Maski0/#92395
Improve `SurfaceTool::generate_tangents` UV error message
This commit is contained in:
commit
2c5145f59d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user