We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fad16a6 commit b984c17Copy full SHA for b984c17
Assets/FbxExporters/Editor/FbxExporterRepairMissingScripts.cs
@@ -75,6 +75,16 @@ private static bool ReplaceGUIDInFile (string path)
75
76
try {
77
var sr = new StreamReader (path);
78
+
79
+ // verify that this is a text file
80
+ if(sr.Peek() > -1){
81
+ var firstLine = sr.ReadLine();
82
+ if(!firstLine.StartsWith("%YAML")){
83
+ sr.Close ();
84
+ return false;
85
+ }
86
87
88
var sw = new StreamWriter (path + ".remap", false);
89
90
while (sr.Peek () > -1) {
0 commit comments