Python API:

Bugfix #5075: make curve.update() recalculate bezier curve handles.  This
would/should be called after changing the handles of a BezTriple.
This commit is contained in:
Ken Hughes
2006-11-13 21:14:48 +00:00
parent de7322f96d
commit 2e133599da
2 changed files with 10 additions and 1 deletions

View File

@@ -1280,6 +1280,15 @@ static PyObject *Curve_appendNurb( BPy_Curve * self, PyObject * args )
PyObject *Curve_update( BPy_Curve * self )
{
Nurb *nu = self->curve->nurb.first;
/* recalculate handles for each curve: calchandlesNurb() will make
* sure curves are bezier first */
while( nu ) {
calchandlesNurb ( nu );
nu = nu->next;
}
Object_updateDag( (void*) self->curve );
Py_RETURN_NONE;