File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Assets/FbxExporters/Editor Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ public class ModelExporter : System.IDisposable
36
36
37
37
const string ProgressBarTitle = "Fbx Export" ;
38
38
39
+ // replace invalid chars with this string
40
+ const string InvalidCharReplacement = "_" ;
41
+
39
42
/// <summary>
40
43
/// Create instance of example
41
44
/// </summary>
@@ -1023,7 +1026,7 @@ private static void EnsureDirectory (string path)
1023
1026
1024
1027
public static string ConvertToValidFilename ( string filename )
1025
1028
{
1026
- return System . Text . RegularExpressions . Regex . Replace ( filename , "[" + new string ( Path . GetInvalidFileNameChars ( ) ) + "]" , "_" ) ;
1029
+ return System . Text . RegularExpressions . Regex . Replace ( filename , "[" + new string ( Path . GetInvalidFileNameChars ( ) ) + "]" , InvalidCharReplacement ) ;
1027
1030
}
1028
1031
}
1029
1032
}
You can’t perform that action at this time.
0 commit comments