mpreble / UnityFBXImporter

150 stars 54 forks source link

Overflow Exception #9

Open karsnen opened 6 years ago

karsnen commented 6 years ago

OverflowException: Value is too large System.Int32.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int32.cs:629) System.Convert.ToInt32 (System.String value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Convert.cs:1270) FBXImporter.ObjectBuilding () (at Assets/UnityFBXImporter/FBXImporter.cs:388) FBXImporter.ParseFBX (System.String path) (at Assets/UnityFBXImporter/FBXImporter.cs:192) MeshManager.findMeshInDesktop () (at Assets/Scripts/FBXImport/MeshManager.cs:39) MeshManager.Start () (at Assets/Scripts/FBXImport/MeshManager.cs:15)

It is a simple FBX in ASCII format imported from 3DS max 2017

It lacks any hierarchy at all.

karsnen commented 6 years ago

Under the switch case Geometry of ObjectBuilding() at FBXImporter.cs 388

impMesh.id = Convert.ToInt32(Utilities.ReadTill(fileCompl, comma, ref iterator).ToString()); //next word should be FBXID, with comma at end

it clogs up.