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:
authorDalai Felinto <dfelinto@gmail.com>2010-01-13 03:15:17 +0300
committerDalai Felinto <dfelinto@gmail.com>2010-01-13 03:15:17 +0300
commitf0180b700d4573d0e3f780dcc177c33eeb7bc0a9 (patch)
treeba41a5f2cdeae7d2114da3b59bdf145601388a31 /source/blender/editors/space_file
parent17108481a9f934102c14bacdf0b994afba00e493 (diff)
Adding .glsl and .data to the Text filtering in the File editor (with Andrea's aval)
(.data is what we use by default as a dome mesh warp format, btw)
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/filelist.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 81aa63dcad9..7ccaa6e2789 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -863,7 +863,9 @@ void filelist_setfiletypes(struct FileList* filelist, short has_quicktime)
file->flags |= BLENDERFILE;
} else if(BLI_testextensie(file->relname, ".py")) {
file->flags |= PYSCRIPTFILE;
- } else if(BLI_testextensie(file->relname, ".txt")) {
+ } else if(BLI_testextensie(file->relname, ".txt")
+ || BLI_testextensie(file->relname, ".glsl")
+ || BLI_testextensie(file->relname, ".data")) {
file->flags |= TEXTFILE;
} else if( BLI_testextensie(file->relname, ".ttf")
|| BLI_testextensie(file->relname, ".ttc")