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:
Diffstat (limited to 'source/blender/editors/space_file/filelist.c')
-rw-r--r--source/blender/editors/space_file/filelist.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 7282b024399..9e674b34d36 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -789,19 +789,10 @@ static int path_extension_type(const char *path)
else if (BLI_testextensie(path, ".py")) {
return PYSCRIPTFILE;
}
- else if (BLI_testextensie(path, ".txt") ||
- BLI_testextensie(path, ".glsl") ||
- BLI_testextensie(path, ".osl") ||
- BLI_testextensie(path, ".data"))
- {
+ else if (BLI_testextensie_n(path, ".txt", ".glsl", ".osl", ".data", NULL)) {
return TEXTFILE;
}
- else if (BLI_testextensie(path, ".ttf") ||
- BLI_testextensie(path, ".ttc") ||
- BLI_testextensie(path, ".pfb") ||
- BLI_testextensie(path, ".otf") ||
- BLI_testextensie(path, ".otc"))
- {
+ else if (BLI_testextensie_n(path, ".ttf", ".ttc", ".pfb", ".otf", ".otc", NULL)) {
return FTFONTFILE;
}
else if (BLI_testextensie(path, ".btx")) {