08-31-2023, 07:48 AM
Hi!
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.
[Trace]:
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! ;(
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.
[Trace]:
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! ;(