From 6a5efdeb29db0b9fb3f30420425480ac6d89b338 Mon Sep 17 00:00:00 2001 From: Preben Eriksen Date: Wed, 26 Oct 2022 10:00:16 +0200 Subject: [PATCH] PE: Fix - Ansi is max 7 bit, assimp/openfbx only support ansi paths. ( https://github.com/FlaxEngine/FlaxEngine/issues/806 ) --- Source/Engine/Core/Types/String.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Engine/Core/Types/String.cpp b/Source/Engine/Core/Types/String.cpp index 43fbcf051..7a8f1b1ed 100644 --- a/Source/Engine/Core/Types/String.cpp +++ b/Source/Engine/Core/Types/String.cpp @@ -215,7 +215,8 @@ bool String::IsANSI() const bool result = true; for (int32 i = 0; i < _length; i++) { - if (_data[i] > 255) + //PE: Ansi is max 7 bit so... + if (_data[i] > 127) { result = false; break;