diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2010-01-13 03:15:17 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2010-01-13 03:15:17 +0300 |
commit | f0180b700d4573d0e3f780dcc177c33eeb7bc0a9 (patch) | |
tree | ba41a5f2cdeae7d2114da3b59bdf145601388a31 /source/blender/editors | |
parent | 17108481a9f934102c14bacdf0b994afba00e493 (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')
-rw-r--r-- | source/blender/editors/space_file/filelist.c | 4 |
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") |