Revision: 21700
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21700
Author: kjym3
Date: 2009-07-19 18:37:55 +0200 (Sun, 19 Jul 2009)
Log Message:
-----------
Fixed uninitialized pointers in Interface0DIterator instances returned by
the castToInterface0DIterator method.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
Modified:
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
===================================================================
---
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
2009-07-19 14:57:20 UTC (rev 21699)
+++
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
2009-07-19 16:37:55 UTC (rev 21700)
@@ -151,10 +151,7 @@
}
PyObject * CurvePointIterator_castToInterface0DIterator(
BPy_CurvePointIterator *self ) {
- PyObject *py_if0D_it = Interface0DIterator_Type.tp_new(
&Interface0DIterator_Type, 0, 0 );
- ((BPy_Interface0DIterator *) py_if0D_it)->if0D_it = new
Interface0DIterator( self->cp_it->castToInterface0DIterator() );
-
- return py_if0D_it;
+ return BPy_Interface0DIterator_from_Interface0DIterator(
self->cp_it->castToInterface0DIterator() );
}
PyObject * CurvePointIterator_getObject(BPy_CurvePointIterator *self) {
Modified:
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
===================================================================
---
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
2009-07-19 14:57:20 UTC (rev 21699)
+++
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
2009-07-19 16:37:55 UTC (rev 21700)
@@ -167,10 +167,7 @@
}
PyObject * StrokeVertexIterator_castToInterface0DIterator(
BPy_StrokeVertexIterator *self ) {
- PyObject *py_if0D_it = Interface0DIterator_Type.tp_new(
&Interface0DIterator_Type, 0, 0 );
- ((BPy_Interface0DIterator *) py_if0D_it)->if0D_it = new
Interface0DIterator( self->sv_it->castToInterface0DIterator() );
-
- return py_if0D_it;
+ return BPy_Interface0DIterator_from_Interface0DIterator(
self->sv_it->castToInterface0DIterator() );
}
PyObject * StrokeVertexIterator_getObject( BPy_StrokeVertexIterator *self) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs