diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-03-14 16:06:09 +0300 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-03-14 16:06:09 +0300 |
commit | c14e91590efd56959eaaaddc47c16817973c59de (patch) | |
tree | 4a99f0be1572284162b031cb5b4b3dc5b32b07bd | |
parent | c8ac7723d61a4368905accd990f4e6b117cb7a16 (diff) |
Fixed StrokeVertex::setPoint() to accept a Blender Vector object as the argument.
Now this method accepts 2D coordinates in the following three forms:
a) Python list of 2 real numbers: setPoint([x, y])
b) Blender Vector of 2 elements: setPoint(Vector(x, y))
c) 2 real numbers: setPoint(x, y)
-rw-r--r-- | source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ShapeUP1D.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ShapeUP1D.cpp b/source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ShapeUP1D.cpp index 9e5312275bf..9e63e43cd6d 100644 --- a/source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ShapeUP1D.cpp +++ b/source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ShapeUP1D.cpp @@ -100,7 +100,7 @@ int ShapeUP1D___init__( BPy_ShapeUP1D* self, PyObject *args ) { unsigned u1, u2 = 0; - if( !PyArg_ParseTuple(args, "II", &u1, &u2) ) { + if( !PyArg_ParseTuple(args, "I|I", &u1, &u2) ) { cout << "ERROR: ShapeUP1D___init__" << endl; return -1; } |