Skip to content

Commit 31c047c

Browse files
committed
Fixed UE4.27 SkeletalMesh support
1 parent 530d282 commit 31c047c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Unreal/UnrealMesh/UnMesh4.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,7 @@ struct FStaticLODModel4
16771677
}
16781678

16791679
// UE4.24+ serializer for most of LOD data
1680+
// Reference: FSkeletalMeshLODRenderData::SerializeStreamedData
16801681
void SerializeStreamedData(FArchive& Ar)
16811682
{
16821683
guard(FStaticLODModel4::SerializeStreamedData);
@@ -1712,6 +1713,12 @@ struct FStaticLODModel4
17121713
FSkinWeightProfilesData SkinWeightProfilesData;
17131714
Ar << SkinWeightProfilesData;
17141715

1716+
if (Ar.Game >= GAME_UE4(27))
1717+
{
1718+
TArray<uint8> RayTracingData;
1719+
Ar << RayTracingData;
1720+
}
1721+
17151722
//todo: this is a copy-paste of SerializeRenderItem_Legacy code!
17161723
guard(BuildVertexData);
17171724

0 commit comments

Comments
 (0)