Fix T46331: File open does not show thumbnails, when a filter_glob is provided by python scripts.

No reason to exclude usual file-type 'guessing' for operator-filtered extensions...

Safe for 2.76, should we need to merge more fixes.
This commit is contained in:
Bastien Montagne 2015-09-30 20:19:21 +02:00 committed by Sergey Sharybin
parent fb78f6d518
commit 2f7eb53ed0
1 changed files with 2 additions and 4 deletions

View File

@ -2215,11 +2215,9 @@ static int filelist_readjob_list_dir(
}
/* Otherwise, do not check extensions for directories! */
else if (!(entry->typeflag & FILE_TYPE_DIR)) {
entry->typeflag = file_extension_type(root, entry->relpath);
if (filter_glob[0] && BLI_testextensie_glob(entry->relpath, filter_glob)) {
entry->typeflag = FILE_TYPE_OPERATOR;
}
else {
entry->typeflag = file_extension_type(root, entry->relpath);
entry->typeflag |= FILE_TYPE_OPERATOR;
}
}