diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-25 07:31:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 07:31:43 +0200 |
commit | 0569738a6e7d53af9e7de19b092c2b29d9ac4267 (patch) | |
tree | f98a5176b66fe256b437cb3d0afdd354114e31e6 | |
parent | 1204ad32d1377c76e3e3233f33a8a5d6489720b4 (diff) | |
parent | 6ff41a3fcd34a515e51a9b268fcf0d70ae0534bc (diff) |
Merge pull request #64849 from jtnicholl/fix_blender_check
Fix Blender file path check to require a directory
-rw-r--r-- | modules/gltf/register_types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gltf/register_types.cpp b/modules/gltf/register_types.cpp index cc1ca9131d..dbbccc9bcc 100644 --- a/modules/gltf/register_types.cpp +++ b/modules/gltf/register_types.cpp @@ -73,8 +73,8 @@ static void _editor_init() { Ref<DirAccess> da = DirAccess::create(DirAccess::ACCESS_FILESYSTEM); if (blender3_path.is_empty()) { WARN_PRINT("Blend file import is enabled in the project settings, but no Blender path is configured in the editor settings. Blend files will not be imported."); - } else if (!da->file_exists(blender3_path)) { - WARN_PRINT("Blend file import is enabled, but the Blender path doesn't point to an accessible file. Blend files will not be imported."); + } else if (!da->dir_exists(blender3_path)) { + WARN_PRINT("Blend file import is enabled, but the Blender path doesn't point to an accessible directory. Blend files will not be imported."); } else { Ref<EditorSceneFormatImporterBlend> importer; importer.instantiate(); |