diff options
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r-- | source/blender/python/api2_2x/Image.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index 0a99c781e4d..82e23c8931a 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -338,6 +338,15 @@ int Image_CheckPyObject (PyObject *pyobj) } /*****************************************************************************/ +/* 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: */ /*****************************************************************************/ static PyObject *Image_getName(BPy_Image *self) |