diff options
author | Julian Eisel <julian@blender.org> | 2022-01-19 22:43:31 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-01-19 22:43:31 +0300 |
commit | e7db1247b1dfdc216fe74d8602ec56b64c8baeef (patch) | |
tree | 42921a9d020f135a02257006988f6571b1297b41 /source/blender/editors | |
parent | 293aab225339548dc25dc95d23276af38254f33a (diff) |
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.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |