01-20-2021, 07:50 PM
Hi HatraE
"I tried it with changing the parent of the CPs (controllpoints) and then use the function SyncSplineFromHierarchy ()."
I was believing that this would work. Please send me your splines' merging code and I will see how to make it work.
"Another thing is that I'm not sure if sometimes the Refresh() function for the CurvySpline comes too late and the next operation tries to access wrong data of a curvySpline."
There is a good way to figure this out, which is to set the CURVY_SANITY_CHECKS preprocessor symbols. This will make Curvy log messages if you use its API incorrectly, helping you debug possible issues. These checks cost some additional CPU time. More information here: https://curvyeditor.com/documentation/apigeneral?redirect=1#preprocessor_symbols
If you do set that symbol, you might get warnings from Curvy's code.
"I tried it with changing the parent of the CPs (controllpoints) and then use the function SyncSplineFromHierarchy ()."
I was believing that this would work. Please send me your splines' merging code and I will see how to make it work.
"Another thing is that I'm not sure if sometimes the Refresh() function for the CurvySpline comes too late and the next operation tries to access wrong data of a curvySpline."
There is a good way to figure this out, which is to set the CURVY_SANITY_CHECKS preprocessor symbols. This will make Curvy log messages if you use its API incorrectly, helping you debug possible issues. These checks cost some additional CPU time. More information here: https://curvyeditor.com/documentation/apigeneral?redirect=1#preprocessor_symbols
If you do set that symbol, you might get warnings from Curvy's code.
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.