Skip to content

Commit acf57bb

Browse files
committed
fixed build for < 4.21
1 parent 6879ca9 commit acf57bb

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Source/UnrealEnginePython/Private/UObject/UEPySkeletal.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,11 @@ PyObject *py_ue_skeletal_mesh_build_lod(ue_PyUObject *self, PyObject * args, PyO
985985

986986
points_to_map.Add(vertex_index);
987987

988+
#if ENGINE_MINOR_VERSION > 20
988989
SkeletalMeshImportData::FMeshWedge wedge;
990+
#else
991+
FMeshWedge wedge;
992+
#endif
989993
wedge.iVertex = vertex_index;
990994
wedge.Color = ss_vertex->ss_vertex.Color;
991995
for (int32 i = 0; i < MAX_TEXCOORDS; i++)
@@ -996,7 +1000,11 @@ PyObject *py_ue_skeletal_mesh_build_lod(ue_PyUObject *self, PyObject * args, PyO
9961000

9971001
for (int32 i = 0; i < MAX_TOTAL_INFLUENCES; i++)
9981002
{
1003+
#if ENGINE_MINOR_VERSION > 20
9991004
SkeletalMeshImportData::FVertInfluence influence;
1005+
#else
1006+
FVertInfluence influence;
1007+
#endif
10001008
influence.VertIndex = wedge_index;
10011009
influence.BoneIndex = ss_vertex->ss_vertex.InfluenceBones[i];
10021010
influence.Weight = ss_vertex->ss_vertex.InfluenceWeights[i] / 255.f;
@@ -1018,7 +1026,11 @@ PyObject *py_ue_skeletal_mesh_build_lod(ue_PyUObject *self, PyObject * args, PyO
10181026

10191027
for (int32 i = 0; i < wedges.Num(); i += 3)
10201028
{
1029+
#if ENGINE_MINOR_VERSION > 20
10211030
SkeletalMeshImportData::FMeshFace face;
1031+
#else
1032+
FMeshFace face;
1033+
#endif
10221034
face.iWedge[0] = i;
10231035
face.iWedge[1] = i + 1;
10241036
face.iWedge[2] = i + 2;

0 commit comments

Comments
 (0)