diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-08-03 02:39:21 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-08-03 02:39:21 +0400 |
commit | e2eb4d567c27b0ea58dd6c1687dcd9538b64202e (patch) | |
tree | bfacd3a92bf1754cca773d115d291d3aa29599c8 /source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp | |
parent | 74027eafcbdb4de4fea48d0fbc765553f9294078 (diff) |
Fixed the handling of constructor arguments in the following Python
types: Interface0D, SVertex, ViewVertex, StrokeVertex, NonTVertex,
and TVertex.
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp b/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp index edccf65f53a..bd2892fa91a 100644 --- a/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp @@ -11,7 +11,7 @@ extern "C" { /////////////////////////////////////////////////////////////////////////////////////////// /*--------------- Python API function prototypes for ViewVertex instance -----------*/ -static int ViewVertex___init__(BPy_ViewVertex *self); +static int ViewVertex___init__( BPy_ViewVertex *self, PyObject *args, PyObject *kwds ); static PyObject * ViewVertex_setNature( BPy_ViewVertex *self, PyObject *args ); static PyObject * ViewVertex_edgesBegin( BPy_ViewVertex *self ); static PyObject * ViewVertex_edgesEnd( BPy_ViewVertex *self ); @@ -116,10 +116,12 @@ PyTypeObject ViewVertex_Type = { //------------------------INSTANCE METHODS ---------------------------------- -int ViewVertex___init__(BPy_ViewVertex *self ) +int ViewVertex___init__( BPy_ViewVertex *self, PyObject *args, PyObject *kwds ) { + if( !PyArg_ParseTuple(args, "") ) + return -1; self->vv = 0; // ViewVertex is abstract - self->py_if0D.if0D = new Interface0D(); + self->py_if0D.if0D = self->vv; self->py_if0D.borrowed = 0; return 0; } |