-- New module: Blender.Texture, by new developer Alex Mole.
Most of it is done: guess only Ipo, envmap, colorband and plugin were not implemented yet.
This commit is contained in:
2003-11-23 17:46:06 +00:00
parent 511b098c81
commit 5e7f9dfa08
14 changed files with 2109 additions and 7 deletions

View File

@@ -337,6 +337,15 @@ int Image_CheckPyObject (PyObject *pyobj)
return (pyobj->ob_type == &Image_Type);
}
/*****************************************************************************/
/* Function: Image_FromPyObject */
/* Description: Returns the Blender Image associated with this object */
/*****************************************************************************/
Image *Image_FromPyObject (PyObject *pyobj)
{
return ((BPy_Image *)pyobj)->image;
}
/*****************************************************************************/
/* Python BPy_Image methods: */
/*****************************************************************************/