diff options
author | Jonathan Nicholl <jonathantnicholl@gmail.com> | 2022-08-24 15:55:11 -0400 |
---|---|---|
committer | Jonathan Nicholl <jonathantnicholl@gmail.com> | 2022-08-24 16:08:01 -0400 |
commit | 6ff41a3fcd34a515e51a9b268fcf0d70ae0534bc (patch) | |
tree | 7738de8a1d3ec1481d70ef4895a58f87925fca59 /modules | |
parent | d0a2a4c98195eb8a43713286b5b865dfbed05163 (diff) |
Fix Blender file path check to require a directory
Diffstat (limited to 'modules')
-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(); |