diff options
Diffstat (limited to 'source/blender/freestyle/intern/python')
-rw-r--r-- | source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | 3 | ||||
-rw-r--r-- | source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp index 686781ee22e..ad276a7521b 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp @@ -151,7 +151,8 @@ PyObject * CurvePointIterator_u( BPy_CurvePointIterator *self ) { } PyObject * CurvePointIterator_castToInterface0DIterator( BPy_CurvePointIterator *self ) { - return BPy_Interface0DIterator_from_Interface0DIterator( self->cp_it->castToInterface0DIterator() ); + Interface0DIterator it( self->cp_it->castToInterface0DIterator() ); + return BPy_Interface0DIterator_from_Interface0DIterator( it ); } PyObject * CurvePointIterator_getObject(BPy_CurvePointIterator *self) { diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp index f33f1a76860..7f36856f359 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp @@ -167,7 +167,8 @@ PyObject * StrokeVertexIterator_u( BPy_StrokeVertexIterator *self ) { } PyObject * StrokeVertexIterator_castToInterface0DIterator( BPy_StrokeVertexIterator *self ) { - return BPy_Interface0DIterator_from_Interface0DIterator( self->sv_it->castToInterface0DIterator() ); + Interface0DIterator it( self->sv_it->castToInterface0DIterator() ); + return BPy_Interface0DIterator_from_Interface0DIterator( it ); } PyObject * StrokeVertexIterator_getObject( BPy_StrokeVertexIterator *self) { |