diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-16 19:01:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-16 19:01:22 +0400 |
commit | fd24c99b5ddd251ee64f95ae227ba76bcf9cb561 (patch) | |
tree | f84ab19743d129002570abe9349dd3603d66f5aa /source/blender/editors/space_file/filelist.c | |
parent | 216ba20942249c96f808d9e5c7ca4cc47c6b77f5 (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.c | 2 |
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; |