* Fix for a crash in StrokeVertexIterator::getObject().
* Minor docstring fixes.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 );
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user