godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
87.2k stars 19.6k forks source link

Blend import dialog window ask for folder, not file. #93235

Open BastiaanOlij opened 1 month ago

BastiaanOlij commented 1 month ago

Tested versions

System information

Windows 11

Issue description

The dialog window that comes up when a blend path is not specified but a blend file is being imported (EditorFileSystemImportFormatSupportQueryBlend), asks you to select a folder while it seems to only work if the full path to the blender.exe is specified.

Looking at the code there seems to be a difference in logic between Windows, Mac and Linux here (see EditorFileSystemImportFormatSupportQueryBlend::_autodetect_path) but I'm not familiar enough with the code to suggest a fix that doesn't break the other platforms.

Steps to reproduce

Create a new project Add a blend file to the project Try and select blender in the dialog window.

Minimal reproduction project (MRP)

n/a

akien-mga commented 1 month ago

I think it's just the message which is outdated after #85448.

AThousandShips commented 1 month ago

Indeed it's a global file path: https://github.com/godotengine/godot/blob/eb20a68b323c1fcb75492f8132e1bd6d321713ec/editor/editor_settings.cpp#L571