Skip to content

Commit

Permalink
fixed 4.27 build
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed May 26, 2023
1 parent 4c2a4b6 commit 9ae0621
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,11 @@ USkeletalMesh* FglTFRuntimeParser::CreateSkeletalMeshFromLODs(TSharedRef<FglTFRu
LOD.bHasUV = false;
}

#if ENGINE_MAJOR_VERSION > 4
FVector3f TangentY = FVector3f(ComputeTangentYWithW(FVector(ModelVertex.TangentZ), FVector(ModelVertex.TangentX), TangentXW * TangentsDirection));
#else
FVector TangentY = ComputeTangentYWithW(ModelVertex.TangentZ, ModelVertex.TangentX, TangentXW * TangentsDirection);
#endif

LodRenderData->StaticVertexBuffers.PositionVertexBuffer.VertexPosition(TotalVertexIndex) = ModelVertex.Position;
LodRenderData->StaticVertexBuffers.StaticMeshVertexBuffer.SetVertexTangents(TotalVertexIndex, ModelVertex.TangentX, TangentY, ModelVertex.TangentZ);
Expand Down

0 comments on commit 9ae0621

Please sign in to comment.