I was asked to put the patch from my email
'[Bf-committers] help needed to cleanup bezier code "makeCyclic()"'
( http://lists.blender.org/pipermail/bf-committers/2008-June/021302.html )
on the patch tracker ... so here it is :)
Please read the email before considering to apply the patch!
- clean up 'makecyclicNurb2()'
from code not needed in the python implementation of 'makeCyclic()'
or even better - for avoiding code duplication:
- generalise the original code of 'makecyclicNurb()'
in file 'source/blender/src/editcurve.c'
and use the generalised code in the implementation of 'CurNurb_makeCyclic()'
I appended two files:
- the path itself: make-cyclic-patch.txt
- an example script using the patch: make-cyclic-example.py
Here a protocol with the patch applied:
blender -P make-cyclic-example.py
>>> b.data.isCyclic(): False
>>> b.data.isCyclic(): True
Note that the bezier handles of the point where the bezier
was closed have to be adjusted after making it cyclic.