[Bf-blender-cvs] [e7db1247b1d] master: Fix: File Browser using asset indexer after Asset Browser was visible

Julian Eisel noreply at git.blender.org
Wed Jan 19 20:47:20 CET 2022


Commit: e7db1247b1dfdc216fe74d8602ec56b64c8baeef
Author: Julian Eisel
Date:   Wed Jan 19 20:43:31 2022 +0100
Branches: master
https://developer.blender.org/rBe7db1247b1dfdc216fe74d8602ec56b64c8baeef

Fix: File Browser using asset indexer after Asset Browser was visible

When toggling to a File Browser from an Asset Browesr, the asset indexer
would be used to load files. I couldn't spot issues with that on a
quick look, but this should still be corrected.

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

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

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

diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 0c4db167a0e..b5eb7905fd8 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1877,8 +1877,6 @@ FileList *filelist_new(short type)
   p->filelist.nbr_entries = FILEDIR_NBR_ENTRIES_UNSET;
   filelist_settype(p, type);
 
-  p->indexer = &file_indexer_noop;
-
   return p;
 }
 
@@ -1890,6 +1888,7 @@ void filelist_settype(FileList *filelist, short type)
 
   filelist->type = type;
   filelist->tags = 0;
+  filelist->indexer = &file_indexer_noop;
   switch (filelist->type) {
     case FILE_MAIN:
       filelist->check_dir_fn = filelist_checkdir_main;



More information about the Bf-blender-cvs mailing list