diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-04 04:23:37 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-02-04 04:23:37 +0400 |
commit | 3c064f4553e4be988fe4fcec450b59b935fa3c80 (patch) | |
tree | 1c3d16fa18865bac305ea1bb0b365308bba26b2d /source/blender/freestyle/intern/python/BPy_Convert.h | |
parent | 7f8a17118bef19016e916c5c9775871ccb9e22db (diff) |
* Added a generic helper function for parsing PyObject arguments as N-dimensional float array.
* Local helpers were replaced with the generic one. This also fixed a memory leak in the setter
function StrokeVertex_point_set.
* Made minor code style changes.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Convert.h')
-rw-r--r-- | source/blender/freestyle/intern/python/BPy_Convert.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Convert.h b/source/blender/freestyle/intern/python/BPy_Convert.h index 178301262ff..7089b4683f1 100644 --- a/source/blender/freestyle/intern/python/BPy_Convert.h +++ b/source/blender/freestyle/intern/python/BPy_Convert.h @@ -137,6 +137,7 @@ Vec2f * Vec2f_ptr_from_PyTuple( PyObject* obj ); Vec3f * Vec3f_ptr_from_PyTuple( PyObject* obj ); Vec3r * Vec3r_ptr_from_PyTuple( PyObject* obj ); +int float_array_from_PyObject(PyObject *obj, float *v, int n); /////////////////////////////////////////////////////////////////////////////////////////// |