Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Add support for Unity 2017.3, 32-bit mesh index buffers, and add priv…
Browse files Browse the repository at this point in the history
…ate .vs directory to .gitignore (MicroGSD#39)

* Add support for Unity 2017.3 and 32-bit mesh index buffers

* Returned old formatting

*Added .vs directory to .gitignore
  • Loading branch information
ArtyIF authored and djohns451 committed Oct 23, 2017
1 parent 3041c57 commit 52f2e24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ExportedObj/
*.pidb
*.booproj
*.svd
/.vs

# Unity3D Generated File On Crash Reports
sysinfo.txt
Expand Down
6 changes: 6 additions & 0 deletions GSDRoadMeshSplinate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2156,9 +2156,15 @@ private void SplinateMesh_Do(bool bGetStrings, ref GameObject[] ErrortObj, bool
// float yDiff = 0f;
// float tDistance = 0f;
int MVL = MeshCount * OrigMVL;
#if UNITY_2017_3_OR_NEWER
if(MVL > 4000000){
throw new System.Exception("Over 4000000 vertices detected, exiting extrusion. Try switching splination axis and make sure your imported FBX file has proper import scale. Make sure the mesh isn't too small and make sure the distance isn't too large.");
}
#else
if(MVL > 64900){
throw new System.Exception("Over 65000 vertices detected, exiting extrusion. Try switching splination axis and make sure your imported FBX file has proper import scale. Make sure the mesh isn't too small and make sure the distance isn't too large.");
}
#endif
int MaxCount = MaxVectorIndices.Count;
int MinCount = MinVectorIndices.Count;
int TriCount = MeshCount * OrigTriCount;
Expand Down

0 comments on commit 52f2e24

Please sign in to comment.