[Bf-blender-cvs] [effabf0] asset-experiments: Remove queing TODO previews when starting preview task, this is already handled (in a better way) by filelist_file_cache_block().
Bastien Montagne
noreply at git.blender.org
Thu Jul 2 21:22:20 CEST 2015
Commit: effabf0ce7f55da20d777c7518b7faed55ad2f2a
Author: Bastien Montagne
Date: Wed Jul 1 17:43:49 2015 +0200
Branches: asset-experiments
https://developer.blender.org/rBeffabf0ce7f55da20d777c7518b7faed55ad2f2a
Remove queing TODO previews when starting preview task, this is already handled
(in a better way) by filelist_file_cache_block().
===================================================================
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 576ef10..acd60a6 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -1783,13 +1783,7 @@ void filelist_cache_previews_set(FileList *filelist, const bool use_previews)
BLI_task_pool_push(pool, filelist_cache_previewf, cache, false, TASK_PRIORITY_HIGH);
}
- i = -(cache->block_end_index - cache->block_start_index);
- while (i++) {
- const int idx = (cache->block_cursor - i) % cache_size;
- FileDirEntry *entry = cache->block_entries[idx];
-
- filelist_cache_previews_push(filelist, entry, cache->block_start_index - i);
- }
+ /* No need to populate preview queue here, filelist_file_cache_block() handles this. */
}
else {
// printf("%s: Clear Previews...\n", __func__);
More information about the Bf-blender-cvs
mailing list