Disabled the Python wrapper of ViewVertex::edgesEnd(), since the

method returns a non-functional orientedViewEdgeIterator instance.
The iteration from the end to the beginning of the sequence relies
on orientedViewEdgeIterator::decrement() which is not actually
implemented in the C++ class.  As a quick fix, the edgesEnd method
now raises a NotImplementedError.
This commit is contained in:
2009-07-31 23:49:12 +00:00
parent 631df8cc01
commit 2c829e9bd3

View File

@@ -149,11 +149,16 @@ PyObject * ViewVertex_edgesBegin( BPy_ViewVertex *self ) {
}
PyObject * ViewVertex_edgesEnd( BPy_ViewVertex *self ) {
#if 0
if( !self->vv )
Py_RETURN_NONE;
ViewVertexInternal::orientedViewEdgeIterator ove_it( self->vv->edgesEnd() );
return BPy_orientedViewEdgeIterator_from_orientedViewEdgeIterator( ove_it, 1 );
#else
PyErr_SetString(PyExc_NotImplementedError, "edgesEnd method currently disabled");
return NULL;
#endif
}