diff options
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/api2_2x/Image.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c index 3e121fae59f..423c4b1897b 100644 --- a/source/blender/python/api2_2x/Image.c +++ b/source/blender/python/api2_2x/Image.c @@ -198,7 +198,9 @@ static PyObject *M_Image_Get( PyObject * self, PyObject * args ) static PyObject *M_Image_GetCurrent( PyObject * self ) { PyObject *current_img; - if (!G.sima || !G.sima->image) Py_RETURN_NONE; + if (!G.sima || !G.sima->image) { + Py_RETURN_NONE; + } current_img = Image_CreatePyObject( G.sima->image ); return current_img; } |