diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-03-30 01:05:03 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-03-30 01:05:03 +0400 |
commit | fbd92e985ed5bf19a92839b4b3fec9a93ce6519f (patch) | |
tree | 9081743c95d6bfcb75cc30cee7752b6d912ad660 /source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | |
parent | ded03e34bf9a989f1ee4e0fe3e3f26f839394299 (diff) |
* improved error handling in CurvePointIterator constructor.
* changed CurvePointIterator::getObject() according to the changes
in revision 19456.
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp')
-rw-r--r-- | source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp index c02bd0a00fc..d649a70e72f 100644 --- a/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp +++ b/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp @@ -133,6 +133,7 @@ int CurvePointIterator___init__(BPy_CurvePointIterator *self, PyObject *args ) self->cp_it = new CurveInternal::CurvePointIterator( PyFloat_AsDouble(obj) ); } else { + PyErr_SetString(PyExc_TypeError, "invalid argument"); return -1; } @@ -157,7 +158,7 @@ PyObject * CurvePointIterator_castToInterface0DIterator( BPy_CurvePointIterator } 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*()) ); } |