mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #109944 from DanielKinsman/headless-blender-import-hang
Fix hang when importing blender files in headless mode
This commit is contained in:
commit
1e5b4a1aae
1 changed files with 2 additions and 0 deletions
|
@ -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. Cannot configure blender path in headless mode.");
|
||||||
|
|
||||||
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"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue