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)
This commit is contained in:
Dalai Felinto
2010-01-13 00:15:17 +00:00
parent 17108481a9
commit f0180b700d

View File

@@ -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")