From bb9cbedf72961a45642e3f398ccb828d9b6d73a8 Mon Sep 17 00:00:00 2001 From: Jens Verwiebe Date: Sun, 3 Nov 2013 13:10:18 +0000 Subject: [PATCH] OSX: Fix an error in own 61065 --- source/blender/editors/space_file/filelist.c | 7 ++++--- 1 file 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] &&