forked from bartvdbraak/blender
OSX: Fix an error in own 61065
This commit is contained in:
parent
e5572a3f55
commit
bb9cbedf72
@ -865,11 +865,12 @@ static void filelist_setfiletypes(struct FileList *filelist)
|
|||||||
|
|
||||||
for (num = 0; num < filelist->numfiles; num++, file++) {
|
for (num = 0; num < filelist->numfiles; num++, file++) {
|
||||||
file->type = file->s.st_mode; /* restore the mess below */
|
file->type = file->s.st_mode; /* restore the mess below */
|
||||||
|
#ifndef __APPLE__
|
||||||
/* Don't check extensions for directories, allow in OSX application bundles */
|
/* Don't check extensions for directories, allow in OSX cause bundles have extensions*/
|
||||||
if ((file->type & S_IFDIR) && (!APPLICATIONBUNDLE)) {
|
if (file->type & S_IFDIR) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
file->flags = file_extension_type(filelist->dir, file->relname);
|
file->flags = file_extension_type(filelist->dir, file->relname);
|
||||||
|
|
||||||
if (filelist->filter_glob[0] &&
|
if (filelist->filter_glob[0] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user