Skip to content

Commit

Permalink
fixed ue4 build
Browse files Browse the repository at this point in the history
  • Loading branch information
rdeioris committed Apr 29, 2024
1 parent 9eb21d9 commit e1de539
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Source/glTFRuntime/Private/glTFRuntimeParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#endif
#include "Misc/Base64.h"
#include "Misc/Compression.h"
#include "Misc/Crc.h"
#include "Misc/Paths.h"
#include "Interfaces/IPluginManager.h"
#if ENGINE_MAJOR_VERSION >= 5 && ENGINE_MINOR_VERSION >= 2
Expand Down Expand Up @@ -4856,8 +4857,12 @@ bool FglTFRuntimeParser::GetMorphTargetNames(const int32 MeshIndex, TArray<FName

void FglTFRuntimeZipFile::SetPassword(const FString& EncryptionKey)
{
auto UTF8Conversion = StringCast<UTF8CHAR>(*EncryptionKey);
Password.Empty();
#if ENGINE_MAJOR_VERSION >= 5
auto UTF8Conversion = StringCast<UTF8CHAR>(*EncryptionKey);
#else
auto UTF8Conversion = StringCast<char>(*EncryptionKey);
#endif
Password.Append(reinterpret_cast<const uint8*>(UTF8Conversion.Get()), UTF8Conversion.Length());
}

Expand Down

0 comments on commit e1de539

Please sign in to comment.