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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user