You've already forked godot
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:
@@ -516,6 +516,8 @@ void EditorFileSystemImportFormatSupportQueryBlend::_update_icons() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool EditorFileSystemImportFormatSupportQueryBlend::query() {
|
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) {
|
if (!configure_blender_dialog) {
|
||||||
configure_blender_dialog = memnew(ConfirmationDialog);
|
configure_blender_dialog = memnew(ConfirmationDialog);
|
||||||
configure_blender_dialog->set_title(TTR("Configure Blender Importer"));
|
configure_blender_dialog->set_title(TTR("Configure Blender Importer"));
|
||||||
|
|||||||
Reference in New Issue
Block a user