* Fix for a crash in StrokeVertexIterator::getObject().

* Minor docstring fixes.
This commit is contained in:
2010-05-21 21:27:32 +00:00
parent cfc351afee
commit f76c3aa376
4 changed files with 5 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ static char ChainPredicateIterator___doc__[] =
" already been chained must be ignored ot not.\n"
" :type iRestrictToUnvisited: bool\n"
" :arg begin: The ViewEdge from where to start the iteration.\n"
" :type begin: :class:`ViewEdge`\n"
" :type begin: :class:`ViewEdge` or None\n"
" :arg orientation: If true, we'll look for the next ViewEdge among\n"
" the ViewEdges that surround the ending ViewVertex of begin. If\n"
" false, we'll search over the ViewEdges surrounding the ending\n"

View File

@@ -31,7 +31,7 @@ static char ChainSilhouetteIterator___doc__[] =
" to stay within the set of selected ViewEdges or not.\n"
" :type iRestrictToSelection: bool\n"
" :arg begin: The ViewEdge from where to start the iteration.\n"
" :type begin: :class:`ViewEdge`\n"
" :type begin: :class:`ViewEdge` or None\n"
" :arg orientation: If true, we'll look for the next ViewEdge among\n"
" the ViewEdges that surround the ending ViewVertex of begin. If\n"
" false, we'll search over the ViewEdges surrounding the ending\n"

View File

@@ -128,6 +128,8 @@ static char StrokeVertexIterator_getObject___doc__[] =
" :rtype: :class:`StrokeVertex`\n";
static PyObject * StrokeVertexIterator_getObject( BPy_StrokeVertexIterator *self) {
if (!self->reversed && self->sv_it->isEnd())
Py_RETURN_NONE;
StrokeVertex *sv = self->sv_it->operator->();
if( sv )
return BPy_StrokeVertex_from_StrokeVertex( *sv );

View File

@@ -24,7 +24,7 @@ static char ViewEdgeIterator___doc__[] =
" orientation.\n"
"\n"
" :arg begin: The ViewEdge from where to start the iteration.\n"
" :type begin: :class:`ViewEdge`\n"
" :type begin: :class:`ViewEdge` or None\n"
" :arg orientation: If true, we'll look for the next ViewEdge among\n"
" the ViewEdges that surround the ending ViewVertex of begin. If\n"
" false, we'll search over the ViewEdges surrounding the ending\n"