Skip to content

Commit

Permalink
fixed non indexed meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Apr 30, 2024
1 parent 1b8b36a commit e51d365
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/glTFRuntime/Private/glTFRuntimeParserStaticMeshes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ UStaticMesh* FglTFRuntimeParser::LoadStaticMesh_Internal(TSharedRef<FglTFRuntime
ParallelFor(NumVertexInstancesPerSection, [&](const int32 VertexInstanceSectionIndex)
{
uint32 VertexIndex = Primitive.Indices[VertexInstanceSectionIndex];
LODIndices[VertexInstanceBaseIndex + VertexInstanceSectionIndex] = VertexInstanceBaseIndex + VertexInstanceSectionIndex;
LODIndices[VertexInstanceBaseIndex + VertexInstanceSectionIndex] = VertexBaseIndex + VertexInstanceSectionIndex;

FStaticMeshBuildVertex& StaticMeshVertex = StaticMeshBuildVertices[VertexInstanceBaseIndex + VertexInstanceSectionIndex];
FStaticMeshBuildVertex& StaticMeshVertex = StaticMeshBuildVertices[VertexBaseIndex + VertexInstanceSectionIndex];

#if ENGINE_MAJOR_VERSION > 4
StaticMeshVertex.Position = FVector3f(GetSafeValue(Primitive.Positions, VertexIndex, FVector::ZeroVector, bMissingIgnore));
Expand Down

0 comments on commit e51d365

Please sign in to comment.