Bug fix #3671: Blender.Beztriple.New() did not accept sequences as parameters,

even though its error messages suggested it did.  Thanks to Yann for the
patch (I also added the ability to accept parameters without requiring
them to be in a tuple).  Also documented the New() function.
This commit is contained in:
Ken Hughes
2006-01-01 15:50:53 +00:00
parent 3634128841
commit 5029a4444a
2 changed files with 44 additions and 21 deletions

View File

@@ -410,6 +410,17 @@ class BezTriple:
@type hide: int
"""
def __init__(coords):
"""
Create a new BezTriple object.
@type coords: sequence of three or nine floats
@param coords: the coordinate values for the new control point. If three
floats are given, then the handle values are automatically generated.
@rtype: BezTriple
@return: a new BezTriple object
"""
def getPoints():
"""
Returns the xy coordinates of the Bezier knot point.