1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Fix hang when importing blender files in headless mode

This commit is contained in:
Daniel Kinsman
2025-08-25 11:30:56 +10:00
parent f20ef37ccb
commit c75a33aa5d

View File

@@ -516,6 +516,8 @@ void EditorFileSystemImportFormatSupportQueryBlend::_update_icons() {
}
bool EditorFileSystemImportFormatSupportQueryBlend::query() {
ERR_FAIL_COND_V_MSG(DisplayServer::get_singleton()->get_name() == "headless", true, "Blender path is invalid or not set, check your Editor Settings.");
if (!configure_blender_dialog) {
configure_blender_dialog = memnew(ConfirmationDialog);
configure_blender_dialog->set_title(TTR("Configure Blender Importer"));