diff options
author | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-09 16:25:27 +0400 |
---|---|---|
committer | Jacques Guignot <guignot@wanadoo.fr> | 2003-07-09 16:25:27 +0400 |
commit | 6fe633aef368d71f007a6f3a96930e1654c9b50b (patch) | |
tree | 2a3eb21e0995dd7fa504b8bd8029068c74263bc9 /source/blender/python/api2_2x/Curve.c | |
parent | da913434dbcf80a2eaa51084a4e3b395fe3784eb (diff) |
added what needed to link a curve to an object (modification of Object_link
added 2 functions Curve_CheckPyObject and Curve_FromPyObject
that I had forgotten
Diffstat (limited to 'source/blender/python/api2_2x/Curve.c')
-rw-r--r-- | source/blender/python/api2_2x/Curve.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Curve.c b/source/blender/python/api2_2x/Curve.c index 38ae90746fe..5c4d671e8af 100644 --- a/source/blender/python/api2_2x/Curve.c +++ b/source/blender/python/api2_2x/Curve.c @@ -143,6 +143,14 @@ PyObject *Curve_Init (void) return (submodule); } +int Curve_CheckPyObject (PyObject *pyobj) +{ + return (pyobj->ob_type == &Curve_Type); +} +Curve *Curve_FromPyObject (PyObject *pyobj) +{ + return ((BPy_Curve *)pyobj)->curve; +} /*****************************************************************************/ /* Python BPy_Curve methods: */ /* gives access to */ |