From 2c829e9bd358b3a4f22898c12eb4ea368f8be0f2 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 31 Jul 2009 23:49:12 +0000 Subject: 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. --- .../blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/freestyle/intern/python') diff --git a/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp b/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp index 3d30f38514b..f37e868bdbd 100644 --- a/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp +++ b/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp @@ -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 } -- cgit v1.2.3