diff options
author | Andrea Weikert <elubie@gmx.net> | 2010-11-06 21:54:15 +0300 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2010-11-06 21:54:15 +0300 |
commit | d475448bddaff1419d1b1f1aca082fa8f8f9a98c (patch) | |
tree | 1f77670a6d27ea9bcec3fcadb64e39b15d0578ab /source/blender/editors/space_file/file_panels.c | |
parent | 066a1d30bb66e2766169a0f474f9ff302e246273 (diff) |
== filebrowser ==
Added two user preferences for filebrowser:
1. Hide Recent Locations
Requested by Kernon Dillon. Reason: People doing video tutorials might not want to expose the name of other projects they are working on.
2. Open Filebrowser in thumbnail view for images and movies
Requested by Sebastian König at the Blender Conference. Reason: In the past (and most likely still) some corrupt images or movies could crash the filebrowser when generating thumbnails. (crashes in ffmpeg, libtiff, libjpg). While many of those were solved, artists in a production environment might want to use this setting to prevent any crashes.
NOTE: the second setting should probably be set next time we create a new default startup.blend. Until then users need to switch this on manually in the User Preferences.
Diffstat (limited to 'source/blender/editors/space_file/file_panels.c')
-rw-r--r-- | source/blender/editors/space_file/file_panels.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_panels.c b/source/blender/editors/space_file/file_panels.c index 9096b9eed27..86cd4a967f1 100644 --- a/source/blender/editors/space_file/file_panels.c +++ b/source/blender/editors/space_file/file_panels.c @@ -33,6 +33,7 @@ #include "DNA_screen_types.h" #include "DNA_space_types.h" +#include "DNA_userdef_types.h" #include "MEM_guardedalloc.h" @@ -146,8 +147,11 @@ static void file_panel_recent(const bContext *C, Panel *pa) { SpaceFile *sfile= CTX_wm_space_file(C); - if(sfile) - file_panel_category(C, pa, FS_CATEGORY_RECENT, &sfile->recentnr, ICON_FILE_FOLDER, 0, 1); + if(sfile) { + if ( !(U.uiflag & USER_HIDE_RECENT) ) { + file_panel_category(C, pa, FS_CATEGORY_RECENT, &sfile->recentnr, ICON_FILE_FOLDER, 0, 1); + } + } } |