diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-09 04:01:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-09 04:01:38 +0400 |
commit | 27d43f3fd3a6fbda95cdb87e4672fe34f19c2205 (patch) | |
tree | 818a5c1744ea0471093fde5387e57c92f7f00546 /source/blender/python/generic/idprop_py_api.c | |
parent | 06b2343b50ff502390b8c7cd62f8e103d03cec51 (diff) |
added API function to C and python
* C: BM_vert_separate(...)
* py: bmesh.utils.vert_separate(vert, edges)
This splits off regions around the vertex, splitting on connected edges passed in a sequence.
also made minor changes
- rename python api functions _rip to _separate
- fixed bmesh iterator being iterable its self (some parts of python expect this)
- fix memory leak in bmesh python api.
Diffstat (limited to 'source/blender/python/generic/idprop_py_api.c')
-rw-r--r-- | source/blender/python/generic/idprop_py_api.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/python/generic/idprop_py_api.c b/source/blender/python/generic/idprop_py_api.c index 3462e6ee5d4..33c5d3bd06d 100644 --- a/source/blender/python/generic/idprop_py_api.c +++ b/source/blender/python/generic/idprop_py_api.c @@ -1324,12 +1324,6 @@ PyTypeObject BPy_IDArray_Type = { /*********** ID Property Group iterator ********/ -static PyObject *IDGroup_Iter_iterself(PyObject *self) -{ - Py_XINCREF(self); - return self; -} - static PyObject *IDGroup_Iter_repr(BPy_IDGroup_Iter *self) { return PyUnicode_FromFormat("(ID Property Group Iter \"%s\")", self->group->prop->name); @@ -1412,7 +1406,7 @@ PyTypeObject BPy_IDGroup_Iter_Type = { /*** Added in release 2.2 ***/ /* Iterators */ - IDGroup_Iter_iterself, /* getiterfunc tp_iter; */ + PyObject_SelfIter, /* getiterfunc tp_iter; */ (iternextfunc) BPy_Group_Iter_Next, /* iternextfunc tp_iternext; */ }; |