diff options
author | maski <maskikarsrikar@gmail.com> | 2024-06-19 02:36:07 +0530 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-20 16:13:12 +0200 |
commit | 734fab7f20122b9fd9bf545f08d3d0baf00c707b (patch) | |
tree | d7a81d5d39c43936e8507e9af65f67675c2c8f2c /scene/resources | |
parent | b75f0485ba15951b87f1d9a2d8dd0fcd55e178e4 (diff) | |
download | redot-engine-734fab7f20122b9fd9bf545f08d3d0baf00c707b.tar.gz |
Improve SurfaceTool::generate_tangents UV error message
Fixes #92395.
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/surface_tool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/surface_tool.cpp b/scene/resources/surface_tool.cpp index b83be8b6ef..3273bc3c00 100644 --- a/scene/resources/surface_tool.cpp +++ b/scene/resources/surface_tool.cpp @@ -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; |