diff options
author | Campbell Barton <ideasman42@gmail.com> | 2005-12-13 03:27:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2005-12-13 03:27:10 +0300 |
commit | fadaa2fbe929a2e16793a2d0b036a72ea91bb4ad (patch) | |
tree | 29fdc763690ed17c3277fe45bd1355d5997fa432 /source/blender/python/api2_2x/Image.c | |
parent | d73e312f885b4deb89835582827887ceae111165 (diff) |
From kh_pylon:
You have to put Py_RETURN_NONE; inside { }; it's a two-line macro
Aparently breaks MacOS.
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-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; } |