Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues with InsertAfter/InsertBefore

Im having issues with the use of curvySpline.InsertAfter/InsertBefore function when Im creating in the same frame multiple splines with several points.

If I debug and inspect the spline point list, I can see that points are out of order, but if I wanted to insert the point X after point D (look the trace that I post at the end of the message), its placed correctly, but in the next frame, Curvy place the point X always at the end. These issue only happens when I handle multiple splines and points at the same frame, in other cases, it works fine.


When I inspect the newly created line with points added:

1. B
2. D
3. E
4. A
5. C

I want X in the index 3, so I use InsertAfter(D). After call the function, if I inspect it looks like:

1. B
2. D
3. X
4. E
5. A
6. C

But in the next frame, if I inspect the list (and also in game), I got:

1. A
2. B
3. C
4. D
5. E
6. X  <-- It should be in index 3, not here! ;(
Can you please send me a reproduction case?
Also, what version of Curvy Splines do you use?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Extrusion and scale curve issues Sacryn 3 14 04-08-2022, 12:30 PM
Last Post: _Aka_
  Compilation issues for iOS with a scene containing generators puzzlekings 2 912 05-13-2021, 06:53 PM
Last Post: _Aka_
  issues with face over lapping and generator ranges Mos Def 7 2,310 12-13-2020, 07:46 AM
Last Post: _Aka_
  Issues with generated meshes Sacryn 2 1,110 10-30-2020, 10:01 PM
Last Post: _Aka_

Forum Jump: