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>2010-05-22 01:27:32 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2010-05-22 01:27:32 +0400
commitf76c3aa3764283918413a50ed9dab079e720ed98 (patch)
treea63367c603d187c6a01c46f03537d5c7abed1188 /source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
parentcfc351afee68d99e65c74af450afd7bf82abcdf2 (diff)
* Fix for a crash in StrokeVertexIterator::getObject().
* Minor docstring fixes.
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
index 607109ce3ad..1273cc2a471 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
@@ -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 );