fix case-sensitivity on fbx

This commit is contained in:
unknown 2018-12-26 12:16:51 -08:00
parent a3206c84f2
commit 65cc683f80
2 changed files with 1 additions and 1 deletions

View file

@ -158,7 +158,7 @@ class AvatarExporter : MonoBehaviour {
assetPath = AssetDatabase.GUIDToAssetPath(Selection.assetGUIDs[0]);
assetName = Path.GetFileNameWithoutExtension(assetPath);
ModelImporter modelImporter = ModelImporter.GetAtPath(assetPath) as ModelImporter;
if (assetPath.LastIndexOf(".fbx") == -1 || modelImporter == null) {
if (assetPath.ToLower().LastIndexOf(".fbx") == -1 || modelImporter == null) {
EditorUtility.DisplayDialog("Error", "Please select an .fbx model asset to export.", "Ok");
return;
}