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:
authorJens Verwiebe <info@jensverwiebe.de>2013-11-03 17:10:18 +0400
committerJens Verwiebe <info@jensverwiebe.de>2013-11-03 17:10:18 +0400
commitbb9cbedf72961a45642e3f398ccb828d9b6d73a8 (patch)
treeedb4cc25b07aa4838ddffc14d1a713a41e48f27a /source/blender/editors/space_file/filelist.c
parente5572a3f553409a6960baba769c0a0ee0ee48853 (diff)
OSX: Fix an error in own 61065
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c7
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] &&