Skip to content

Commit 88c870f

Browse files
author
Roberto De Ioris
committed
fixed autodetection for PyFbxFactory #488
1 parent 95b4136 commit 88c870f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Source/PythonConsole/Private/PyFbxFactory.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ void UPyFbxFactory::PostInitProperties() {
2727
UObject * UPyFbxFactory::FactoryCreateFile(UClass* InClass, UObject* InParent, FName InName, EObjectFlags Flags, const FString& Filename, const TCHAR* Parms, FFeedbackContext* Warn, bool& bOutOperationCanceled)
2828
{
2929
#if ENGINE_MINOR_VERSION >= 20
30+
if (ImportUI->MeshTypeToImport == FBXIT_MAX)
31+
{
32+
if (!DetectImportType(UFactory::CurrentFilename))
33+
{
34+
return nullptr;
35+
}
36+
}
3037
FbxMeshUtils::SetImportOption(ImportUI);
3138
// ensure auto-detect is skipped
3239
bDetectImportTypeOnImport = false;

0 commit comments

Comments
 (0)