diff options
author | Ken Hughes <khughes@pacific.edu> | 2006-12-23 18:30:50 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2006-12-23 18:30:50 +0300 |
commit | d66f828c9bee8177fbd3b0155a48dacbb450189b (patch) | |
tree | 32e7a489effce7af6721bc01a36abef98fa5d31c /source/blender/python/api2_2x/Curve.c | |
parent | 6d4aadaa5f88df0a116de97b617f7e680ca28826 (diff) |
Python API
----------
Bugfix #5492: correctly distinguish curves and surfaces in Curve iterator.
Diffstat (limited to 'source/blender/python/api2_2x/Curve.c')
-rw-r--r-- | source/blender/python/api2_2x/Curve.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c index 80e6a39b9da..f495a74a06c 100644 --- a/source/blender/python/api2_2x/Curve.c +++ b/source/blender/python/api2_2x/Curve.c @@ -1465,7 +1465,7 @@ static PyObject *Curve_iterNext( BPy_Curve * self ) if( self->iter_pointer ) { pnurb = self->iter_pointer; self->iter_pointer = pnurb->next; /* advance iterator */ - if( pnurb->pntsv == 1 ) + if( (pnurb->type & 7) == CU_BEZIER || pnurb->pntsv <= 1 ) return CurNurb_CreatePyObject( pnurb ); /* make a bpy_curnurb */ else return SurfNurb_CreatePyObject( pnurb ); /* make a bpy_surfnurb */ @@ -1476,8 +1476,6 @@ static PyObject *Curve_iterNext( BPy_Curve * self ) "iterator at end" ); } - - /* tp_sequence methods */ /* |