[Bf-blender-cvs] [c61d6e3] asset-experiments: FileBrowser: Fix sorting/filtering (we need to clear the cache in those cases!).
Bastien Montagne
noreply at git.blender.org
Thu Apr 2 13:53:50 CEST 2015
Commit: c61d6e36ba87ad0a442b534b3759fc83f5f0ce4b
Author: Bastien Montagne
Date: Thu Apr 2 10:27:07 2015 +0200
Branches: asset-experiments
https://developer.blender.org/rBc61d6e36ba87ad0a442b534b3759fc83f5f0ce4b
FileBrowser: Fix sorting/filtering (we need to clear the cache in those cases!).
===================================================================
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 9c65785..e13f02d 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -318,6 +318,7 @@ static int groupname_to_code(const char *group);
static unsigned int groupname_to_filter_id(const char *group);
static void filelist_filter_clear(FileList *filelist);
+static void filelist_cache_clear(FileListEntryCache *cache);
/* ********** Sort helpers ********** */
@@ -692,6 +693,8 @@ void filelist_filter(FileList *filelist)
filelist->filelist.nbr_entries_filtered = num_filtered;
// printf("Filetered: %d over %d entries\n", num_filtered, filelist->filelist.nbr_entries);
+ filelist_cache_clear(&filelist->filelist_cache);
+
MEM_freeN(filtered_tmp);
}
More information about the Bf-blender-cvs
mailing list