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
This commit is contained in:
2003-07-09 12:25:27 +00:00
parent da913434db
commit 6fe633aef3
2 changed files with 17 additions and 0 deletions

View File

@@ -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 */