[Bf-blender-cvs] [c58e7da43e0] master: Asset Browser: Avoid non-existent directory prints

Julian Eisel noreply at git.blender.org
Mon Nov 21 12:29:40 CET 2022


Commit: c58e7da43e03d6b24408305654b63c37007e7227
Author: Julian Eisel
Date:   Mon Nov 21 12:11:52 2022 +0100
Branches: master
https://developer.blender.org/rBc58e7da43e03d6b24408305654b63c37007e7227

Asset Browser: Avoid non-existent directory prints

When loading asset libraries, there would be a bunch of "non-existent
directory" prints because we were calling a function to list directory
contents on .blend file paths. Make sure the path actually points to a
directory.

===================================================================

M	source/blender/editors/space_file/filelist.cc

===================================================================

diff --git a/source/blender/editors/space_file/filelist.cc b/source/blender/editors/space_file/filelist.cc
index 22c94065234..46211a72a82 100644
--- a/source/blender/editors/space_file/filelist.cc
+++ b/source/blender/editors/space_file/filelist.cc
@@ -3564,7 +3564,7 @@ static void filelist_readjob_recursive_dir_add_items(const bool do_lib,
       }
     }
 
-    if (!is_lib) {
+    if (!is_lib && BLI_is_dir(subdir)) {
       entries_num = filelist_readjob_list_dir(
           subdir, &entries, filter_glob, do_lib, job_params->main_name, skip_currpar);
     }



More information about the Bf-blender-cvs mailing list