diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2013-11-03 17:10:18 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2013-11-03 17:10:18 +0400 |
commit | bb9cbedf72961a45642e3f398ccb828d9b6d73a8 (patch) | |
tree | edb4cc25b07aa4838ddffc14d1a713a41e48f27a /source | |
parent | e5572a3f553409a6960baba769c0a0ee0ee48853 (diff) |
OSX: Fix an error in own 61065
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 6ee1afea5e9..a2f81498dd3 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -865,11 +865,12 @@ static void filelist_setfiletypes(struct FileList *filelist) for (num = 0; num < filelist->numfiles; num++, file++) { file->type = file->s.st_mode; /* restore the mess below */ - - /* Don't check extensions for directories, allow in OSX application bundles */ - if ((file->type & S_IFDIR) && (!APPLICATIONBUNDLE)) { +#ifndef __APPLE__ + /* Don't check extensions for directories, allow in OSX cause bundles have extensions*/ + if (file->type & S_IFDIR) { continue; } +#endif file->flags = file_extension_type(filelist->dir, file->relname); if (filelist->filter_glob[0] && |