Merge pull request #71369 from Calinou/editor-tweak-executable-file-filters

Tweak fbx2gltf file filter to remove naming restriction
This commit is contained in:
Rémi Verschelde 2023-01-16 12:47:34 +01:00
commit 750dc4f906
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -144,12 +144,8 @@ FBXImporterManager::FBXImporterManager() {
browse_dialog = memnew(EditorFileDialog);
browse_dialog->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
browse_dialog->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE);
#if defined(X11_ENABLED)
browse_dialog->add_filter("FBX2glTF-linux-x86_64");
#elif defined(OSX_ENABLED)
browse_dialog->add_filter("FBX2glTF-macos-x86_64");
#elif defined(WINDOWS_ENABLED)
browse_dialog->add_filter("FBX2glTF-windows-x86_64");
#ifdef WINDOWS_ENABLED
browse_dialog->add_filter("*.exe");
#endif
browse_dialog->connect("file_selected", callable_mp(this, &FBXImporterManager::_select_file));