Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into master
  • Loading branch information
Koderz committed Aug 24, 2020
2 parents b16613a + 7411577 commit 95d924c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ void URuntimeMeshComponentStatic::OnRegister()
else
{
Initialize(StaticProvider);
RuntimeMesh = GetRuntimeMesh();
}

Super::OnRegister();
Expand Down
4 changes: 2 additions & 2 deletions Source/RuntimeMeshComponent/Private/RuntimeMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,9 +1149,9 @@ FRuntimeMeshProxyPtr URuntimeMesh::GetRenderProxy(ERHIFeatureLevel::Type InFeatu
for (int32 LODIndex = 0; LODIndex < LODs.Num(); LODIndex++)
{
FRuntimeMeshLOD& LOD = LODs[LODIndex];
for (int32 SectionId = 0; SectionId < LOD.Sections.Num(); SectionId++)
for (auto pair : LOD.Sections)
{
RenderProxy->CreateOrUpdateSection_GameThread(LODIndex, SectionId, LOD.Sections[SectionId], true);
RenderProxy->CreateOrUpdateSection_GameThread(LODIndex, pair.Key, pair.Value, true);
bHadAnyInitialized = true;

}
Expand Down

0 comments on commit 95d924c

Please sign in to comment.