Tweak fbx2gltf file filter to remove naming restriction
This relaxes the naming restriction on fbx2gltf binaries, as people may be renaming them then wondering why they've disappeared from the dialog unless they select "All Files (*)" as a filter.
This commit is contained in:
@ -144,12 +144,8 @@ FBXImporterManager::FBXImporterManager() {
|
|||||||
browse_dialog = memnew(EditorFileDialog);
|
browse_dialog = memnew(EditorFileDialog);
|
||||||
browse_dialog->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
browse_dialog->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
||||||
browse_dialog->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE);
|
browse_dialog->set_file_mode(EditorFileDialog::FILE_MODE_OPEN_FILE);
|
||||||
#if defined(X11_ENABLED)
|
#ifdef WINDOWS_ENABLED
|
||||||
browse_dialog->add_filter("FBX2glTF-linux-x86_64");
|
browse_dialog->add_filter("*.exe");
|
||||||
#elif defined(OSX_ENABLED)
|
|
||||||
browse_dialog->add_filter("FBX2glTF-macos-x86_64");
|
|
||||||
#elif defined(WINDOWS_ENABLED)
|
|
||||||
browse_dialog->add_filter("FBX2glTF-windows-x86_64");
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
browse_dialog->connect("file_selected", callable_mp(this, &FBXImporterManager::_select_file));
|
browse_dialog->connect("file_selected", callable_mp(this, &FBXImporterManager::_select_file));
|
||||||
|
|||||||
Reference in New Issue
Block a user