Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-06-16 19:01:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-06-16 19:01:22 +0400
commitfd24c99b5ddd251ee64f95ae227ba76bcf9cb561 (patch)
treef84ab19743d129002570abe9349dd3603d66f5aa /source/blender/editors/space_file/filelist.c
parent216ba20942249c96f808d9e5c7ca4cc47c6b77f5 (diff)
directory only filesel for operators which don't have a filepath or filename property.
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 32b725e0b1f..6736230e84f 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -915,6 +915,8 @@ void filelist_select_file(struct FileList* filelist, int index, FileSelType sele
int check_ok = 0;
switch (check) {
case CHECK_DIRS:
+ check_ok = S_ISDIR(file->type);
+ break;
case CHECK_ALL:
check_ok = 1;
break;