Adding .glsl and .data to the Text filtering in the File editor (with Andrea's aval)
authorDalai Felinto <dfelinto@gmail.com>
Wed, 13 Jan 2010 00:15:17 +0000 (00:15 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 13 Jan 2010 00:15:17 +0000 (00:15 +0000)
(.data is what we use by default as a dome mesh warp format, btw)

source/blender/editors/space_file/filelist.c

index 81aa63dcad94a83a7c956ba9f8c7f890100bde9e..7ccaa6e278902c56a6d30a9aa8add212b52df923 100644 (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")