From 46bce66805172ff580a5cb88c5f82c2feef5a52d Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 31 Dec 2014 20:45:39 +0100 Subject: SpaceFile: Tweak thumbnail to avoid restarting the job needlessly. --- source/blender/editors/space_file/space_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_file/space_file.c') diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index a4a216fb515..3f21e561546 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -218,7 +218,7 @@ static void file_refresh(const bContext *C, ScrArea *UNUSED(sa)) filelist_sort(sfile->files); } - if ((params->display == FILE_IMGDISPLAY)) { + if ((params->display == FILE_IMGDISPLAY) && filelist_need_thumbnails(sfile->files)) { if (!thumbnails_running(wm, sfile->files)) { thumbnails_start(sfile->files, C); } -- cgit v1.2.3