RealtimeMeshAlgo::GenerateTangents type mismatch fixes
k0kz opened this issue · comments
C4018 (type mismatch) fixes
Line 375
for (int32 TriIdx = 0; TriIdx < NumTris; TriIdx++)
Changed to:
for (uint32 TriIdx = 0; TriIdx < NumTris; TriIdx++)
Lines 483 and 508
for (int VertxIdx = 0; VertxIdx < NumVertices; VertxIdx++)
Changed to:
for (uint32 VertxIdx = 0; VertxIdx < NumVertices; VertxIdx++)
2672 (no matching overload) fixes
Line 383 (when Triangles TArray uses int32 instead of uint 32)
uint32 VertIndex = FMath::Min(Triangles[(TriIdx * 3) + CornerIdx], NumVertices - 1);
Changed to:
uint32 VertIndex = FMath::Min(uint32(Triangles[(TriIdx * 3) + CornerIdx]), NumVertices - 1);