From 88c870f2433ca7b9d8327f572fd07beb5d6a22b8 Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Wed, 15 Aug 2018 09:08:31 +0200 Subject: [PATCH] fixed autodetection for PyFbxFactory #488 --- Source/PythonConsole/Private/PyFbxFactory.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/PythonConsole/Private/PyFbxFactory.cpp b/Source/PythonConsole/Private/PyFbxFactory.cpp index d362f664b..9161ad480 100644 --- a/Source/PythonConsole/Private/PyFbxFactory.cpp +++ b/Source/PythonConsole/Private/PyFbxFactory.cpp @@ -27,6 +27,13 @@ void UPyFbxFactory::PostInitProperties() { UObject * UPyFbxFactory::FactoryCreateFile(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, const FString& Filename, const TCHAR* Parms, FFeedbackContext* Warn, bool& bOutOperationCanceled) { #if ENGINE_MINOR_VERSION >= 20 + if (ImportUI->MeshTypeToImport == FBXIT_MAX) + { + if (!DetectImportType(UFactory::CurrentFilename)) + { + return nullptr; + } + } FbxMeshUtils::SetImportOption(ImportUI); // ensure auto-detect is skipped bDetectImportTypeOnImport = false;