TriAxis-Games / RealtimeMeshComponent

Unreal Engine 5 plugin component for rendering runtime generated content.

Home Page:https://rmc.triaxis.games/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RealtimeMeshAlgo::GenerateTangents type mismatch fixes

k0kz opened this issue · comments

commented

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);

Hey @k0kz

This should be fixed with your PR in master!

Thanks,
-Chris