From aff53f52179927d9bb00c793555b50178d3e258a Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Fri, 24 Jul 2009 23:34:25 +0000 Subject: Fixed compiler errors caused by the changes in revision 21700. --- .../freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | 3 ++- .../freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/freestyle/intern') 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) { -- cgit v1.2.3