parent
b75f0485ba
commit
734fab7f20
1 changed files with 1 additions and 1 deletions
|
@ -1158,7 +1158,7 @@ void SurfaceTool::mikktSetTSpaceDefault(const SMikkTSpaceContext *pContext, cons
|
||||||
}
|
}
|
||||||
|
|
||||||
void SurfaceTool::generate_tangents() {
|
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));
|
ERR_FAIL_COND(!(format & Mesh::ARRAY_FORMAT_NORMAL));
|
||||||
|
|
||||||
SMikkTSpaceInterface mkif;
|
SMikkTSpaceInterface mkif;
|
||||||
|
|
Loading…
Reference in a new issue