Browse Source

Recognize OTF files without going to XML parsing (which fails). Closes #830.

Lasse Öörni 10 years ago
parent
commit
c254205bce
1 changed files with 2 additions and 0 deletions
  1. 2 0
      bin/Data/Scripts/Editor/EditorResourceBrowser.as

+ 2 - 0
bin/Data/Scripts/Editor/EditorResourceBrowser.as

@@ -1136,6 +1136,8 @@ bool GetExtensionType(String path, StringHash &out fileType)
     StringHash type = StringHash(GetExtension(path));
     if (type == EXTENSION_TYPE_TTF)
         fileType = EXTENSION_TYPE_TTF;
+    else if (type == EXTENSION_TYPE_OTF)
+        fileType = EXTENSION_TYPE_OTF;
     else if (type == EXTENSION_TYPE_OGG)
         fileType = EXTENSION_TYPE_OGG;
     else if(type == EXTENSION_TYPE_WAV)