diff --git a/modules/gltf/editor/editor_scene_importer_fbx.cpp b/modules/gltf/editor/editor_scene_importer_fbx.cpp index 5e7a8f4e69a4..34a813bc9e61 100644 --- a/modules/gltf/editor/editor_scene_importer_fbx.cpp +++ b/modules/gltf/editor/editor_scene_importer_fbx.cpp @@ -119,30 +119,4 @@ void EditorSceneFormatImporterFBX::get_import_options(const String &p_path, List *r_options) { } -bool EditorFileSystemImportFormatSupportQueryFBX::is_active() const { - String fbx2gltf_path = EDITOR_GET("filesystem/import/fbx/fbx2gltf_path"); - return !FileAccess::exists(fbx2gltf_path); -} - -Vector EditorFileSystemImportFormatSupportQueryFBX::get_file_extensions() const { - Vector ret; - ret.push_back("fbx"); - return ret; -} - -bool EditorFileSystemImportFormatSupportQueryFBX::query() { - FBXImporterManager::get_singleton()->show_dialog(true); - - while (true) { - OS::get_singleton()->delay_usec(1); - DisplayServer::get_singleton()->process_events(); - Main::iteration(); - if (!FBXImporterManager::get_singleton()->is_visible()) { - break; - } - } - - return false; -} - #endif // TOOLS_ENABLED diff --git a/modules/gltf/editor/editor_scene_importer_fbx.h b/modules/gltf/editor/editor_scene_importer_fbx.h index cc60830eacb6..e7ccf11e4c70 100644 --- a/modules/gltf/editor/editor_scene_importer_fbx.h +++ b/modules/gltf/editor/editor_scene_importer_fbx.h @@ -55,15 +55,6 @@ class EditorSceneFormatImporterFBX : public EditorSceneFormatImporter { const HashMap &p_options) override; }; -class EditorFileSystemImportFormatSupportQueryFBX : public EditorFileSystemImportFormatSupportQuery { - GDCLASS(EditorFileSystemImportFormatSupportQueryFBX, EditorFileSystemImportFormatSupportQuery); - -public: - virtual bool is_active() const override; - virtual Vector get_file_extensions() const override; - virtual bool query() override; -}; - #endif // TOOLS_ENABLED #endif // EDITOR_SCENE_IMPORTER_FBX_H diff --git a/modules/gltf/register_types.cpp b/modules/gltf/register_types.cpp index fecea45fc90b..d74b4e0bd2a2 100644 --- a/modules/gltf/register_types.cpp +++ b/modules/gltf/register_types.cpp @@ -83,10 +83,6 @@ static void _editor_init() { Ref importer; importer.instantiate(); ResourceImporterScene::get_scene_singleton()->add_importer(importer); - - Ref fbx_import_query; - fbx_import_query.instantiate(); - EditorFileSystem::get_singleton()->add_import_format_support_query(fbx_import_query); } } #endif // TOOLS_ENABLED