Skip to content

Commit

Permalink
Fixed UE4.27 SkeletalMesh support
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor2 committed Jan 4, 2022
1 parent 530d282 commit 31c047c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Unreal/UnrealMesh/UnMesh4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1677,6 +1677,7 @@ struct FStaticLODModel4
}

// UE4.24+ serializer for most of LOD data
// Reference: FSkeletalMeshLODRenderData::SerializeStreamedData
void SerializeStreamedData(FArchive& Ar)
{
guard(FStaticLODModel4::SerializeStreamedData);
Expand Down Expand Up @@ -1712,6 +1713,12 @@ struct FStaticLODModel4
FSkinWeightProfilesData SkinWeightProfilesData;
Ar << SkinWeightProfilesData;

if (Ar.Game >= GAME_UE4(27))
{
TArray<uint8> RayTracingData;
Ar << RayTracingData;
}

//todo: this is a copy-paste of SerializeRenderItem_Legacy code!
guard(BuildVertexData);

Expand Down

0 comments on commit 31c047c

Please sign in to comment.