[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19457] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp: * improved error handling in CurvePointIterator constructor.
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sun Mar 29 23:05:03 CEST 2009
Revision: 19457
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19457
Author: kjym3
Date: 2009-03-29 23:05:03 +0200 (Sun, 29 Mar 2009)
Log Message:
-----------
* improved error handling in CurvePointIterator constructor.
* changed CurvePointIterator::getObject() according to the changes
in revision 19456.
Revision Links:
--------------
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19456
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.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-03-29 21:00:26 UTC (rev 19456)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp 2009-03-29 21:05:03 UTC (rev 19457)
@@ -133,6 +133,7 @@
self->cp_it = new CurveInternal::CurvePointIterator( PyFloat_AsDouble(obj) );
} else {
+ PyErr_SetString(PyExc_TypeError, "invalid argument");
return -1;
}
@@ -157,7 +158,7 @@
}
PyObject * CurvePointIterator_getObject(BPy_CurvePointIterator *self) {
- return BPy_CurvePoint_from_CurvePoint( self->cp_it->operator*() );
+ return BPy_CurvePoint_from_CurvePoint_ptr( &(self->cp_it->operator*()) );
}
More information about the Bf-blender-cvs
mailing list