Skip to content

Commit

Permalink
Improve SurfaceTool::generate_tangents UV error message
Browse files Browse the repository at this point in the history
Fixes #92395.
  • Loading branch information
Maski0 authored and akien-mga committed Jun 20, 2024
1 parent b75f048 commit 734fab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/resources/surface_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 734fab7

Please sign in to comment.