Skip to content

Commit

Permalink
Merge pull request #93326 from Maski0/#92395
Browse files Browse the repository at this point in the history
Improve `SurfaceTool::generate_tangents` UV error message
  • Loading branch information
akien-mga committed Jun 20, 2024
2 parents fb00825 + 734fab7 commit 2c5145f
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 2c5145f

Please sign in to comment.