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/CurvePoint | |
parent | 3bd0b8971615d6ddc309aa33a40f7ebf0c25b0c6 (diff) |
Code clean-up and fix for typos in docstrings.
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D/CurvePoint')
-rw-r--r-- | source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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 */ |