Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-01 03:49:12 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-01 03:49:12 +0400
commit2c829e9bd358b3a4f22898c12eb4ea368f8be0f2 (patch)
tree295ac110049cb9bbf02cce0186c1ea1edd7c4bf0 /source/blender/freestyle/intern/python/Interface0D
parent631df8cc01c17307a580d13760cba43800c75b91 (diff)
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.
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface0D')
-rw-r--r--source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp5
1 files changed, 5 insertions, 0 deletions
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
}