OSX: Fix an error in own 61065
[blender.git] / source / blender / editors / space_file / filelist.c
index 6ee1afea5e9d935656fcc90eda42037a2bfcac5d..a2f81498dd3f79e69f7f490f565a51ebdf5e3071 100644 (file)
@@ -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] &&