Skip to content

Commit

Permalink
fixed autodetection for PyFbxFactory #488
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto De Ioris committed Aug 15, 2018
1 parent 95b4136 commit 88c870f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Source/PythonConsole/Private/PyFbxFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88c870f

Please sign in to comment.