Patch to the auto-generated C# Collada code, because of a mono bug reported here:

https://bugzilla.xamarin.com/show_bug.cgi?id=25474
The auto-generated code runs fine in Windows .Net but crashes in mono for some Collada files.
This commit is contained in:
Diva Canto
2014-12-17 08:31:08 -08:00
parent 00e5078bee
commit 3a59220cde

View File

@@ -38234,6 +38234,7 @@ namespace OpenMetaverse.ImportExport.Collada14
{
public static string ConvertFromArray(double[] values)
{
if (values == null) return string.Empty;
string[] tmp = new string[values.Length];
for (int i = 0; i < values.Length; i++)
{
@@ -38244,6 +38245,7 @@ namespace OpenMetaverse.ImportExport.Collada14
public static string ConvertFromArray(long[] values)
{
if (values == null) return string.Empty;
string[] tmp = new string[values.Length];
for (int i = 0; i < values.Length; i++)
{
@@ -38254,6 +38256,7 @@ namespace OpenMetaverse.ImportExport.Collada14
public static string ConvertFromArray(bool[] values)
{
if (values == null) return string.Empty;
string[] tmp = new string[values.Length];
for (int i = 0; i < values.Length; i++)
{
@@ -38264,6 +38267,7 @@ namespace OpenMetaverse.ImportExport.Collada14
public static string ConvertFromArray(string[] values)
{
if (values == null) return string.Empty;
return string.Join(" ", values);
}