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:
parent
fb78f6d518
commit
2f7eb53ed0
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue