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