mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
parent
b75f0485ba
commit
734fab7f20
@ -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