OSL / Filebrowser:
authorThomas Dinges <blender@dingto.org>
Sat, 3 Nov 2012 18:52:44 +0000 (18:52 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 3 Nov 2012 18:52:44 +0000 (18:52 +0000)
* Add .osl extension to the TEXTFILE filter, so .osl files will show up when the filter is enabled. (Text Editor -> Open Text Block)

source/blender/editors/space_file/filelist.c

index 7f0af36d5d67d04c6df4359b81ff0adb137fee9a..d8e6510a2691822cafa54ee9c857d6b77df0bfd7 100644 (file)
@@ -785,6 +785,7 @@ static int file_extension_type(const char *relname)
        }
        else if (BLI_testextensie(relname, ".txt")  ||
                 BLI_testextensie(relname, ".glsl") ||
+                        BLI_testextensie(relname, ".osl")  ||
                 BLI_testextensie(relname, ".data"))
        {
                return TEXTFILE;