diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-24 06:32:56 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-24 06:32:56 +0400 |
commit | d38a335d47f1632000db5172877499ff0184d114 (patch) | |
tree | 296dceec7d9a82057f0b7cd7ce33de6771dc8906 /source/blender/freestyle/intern/python/Interface0D | |
parent | 3bd0b8971615d6ddc309aa33a40f7ebf0c25b0c6 (diff) |
Code clean-up and fix for typos in docstrings.
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D')
3 files changed, 5 insertions, 17 deletions
diff --git a/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp b/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp index 4dc6f92d9d1..4f49a8d0b70 100644 --- a/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp @@ -137,10 +137,6 @@ static int CurvePoint_init(BPy_CurvePoint *self, PyObject *args, PyObject *kwds) ///bool operator== (const CurvePoint &b) -static PyMethodDef BPy_CurvePoint_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------CurvePoint get/setters ----------------------------*/ PyDoc_STRVAR(CurvePoint_first_svertex_doc, @@ -259,7 +255,7 @@ PyTypeObject CurvePoint_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_CurvePoint_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_CurvePoint_getseters, /* tp_getset */ &Interface0D_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp b/source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp index 523486e823f..6475a09cb13 100644 --- a/source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp @@ -107,7 +107,8 @@ static int StrokeVertex_init(BPy_StrokeVertex *self, PyObject *args, PyObject *k if (PyArg_ParseTupleAndKeywords(args, kwds, "|O!", (char **)kwlist_1, &StrokeVertex_Type, &obj1)) { if (!obj1) { self->sv = new StrokeVertex(); - } else { + } + else { if (!((BPy_StrokeVertex *)obj1)->sv) { PyErr_SetString(PyExc_TypeError, "argument 1 is an invalid StrokeVertex object"); return -1; @@ -163,11 +164,6 @@ static int StrokeVertex_init(BPy_StrokeVertex *self, PyObject *args, PyObject *k // real operator[] (const int i) const // real & operator[] (const int i) -/*----------------------StrokeVertex instance definitions ----------------------------*/ -static PyMethodDef BPy_StrokeVertex_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------mathutils callbacks ----------------------------*/ static int StrokeVertex_mathutils_check(BaseMathObject *bmo) @@ -367,7 +363,7 @@ PyTypeObject StrokeVertex_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_StrokeVertex_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_StrokeVertex_getseters, /* tp_getset */ &CurvePoint_Type, /* tp_base */ diff --git a/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_NonTVertex.cpp b/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_NonTVertex.cpp index 70f5952d0d0..a4bfcab78e8 100644 --- a/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_NonTVertex.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_NonTVertex.cpp @@ -78,10 +78,6 @@ static int NonTVertex_init(BPy_NonTVertex *self, PyObject *args, PyObject *kwds) return 0; } -static PyMethodDef BPy_NonTVertex_methods[] = { - {NULL, NULL, 0, NULL} -}; - /*----------------------NonTVertex get/setters ----------------------------*/ PyDoc_STRVAR(NonTVertex_svertex_doc, @@ -141,7 +137,7 @@ PyTypeObject NonTVertex_Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - BPy_NonTVertex_methods, /* tp_methods */ + 0, /* tp_methods */ 0, /* tp_members */ BPy_NonTVertex_getseters, /* tp_getset */ &ViewVertex_Type, /* tp_base */ |