11-15-2015, 11:56 PM
So I am now trying to add/remove CPs to a single spline.
The adding part works ok and also settings the range for the CG input path - but at least in the editor there's a stutter when doing this still. Not sure if the number of CPs added at once is important, didn't test much yet on this.
Trying to remove CPs however always brings me to this error.
The adding part works ok and also settings the range for the CG input path - but at least in the editor there's a stutter when doing this still. Not sure if the number of CPs added at once is important, didn't test much yet on this.
Trying to remove CPs however always brings me to this error.
Code:
NullReferenceException: Object reference not set to an instance of an object
FluffyUnderware.Curvy.CurvySplineSegment.get_ControlPointIndex () (at Assets/Packages/Curvy/Base/CurvySplineSegment.cs:1065)
FluffyUnderware.Curvy.CurvySplineSegment.System.IComparable.CompareTo (System.Object obj) (at Assets/Packages/Curvy/Base/CurvySplineSegment.cs:2757)
System.Collections.Generic.Comparer`1+DefaultComparer[FluffyUnderware.Curvy.CurvySplineSegment].Compare (FluffyUnderware.Curvy.CurvySplineSegment x, FluffyUnderware.Curvy.CurvySplineSegment y) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Comparer.cs:84)