From fadaa2fbe929a2e16793a2d0b036a72ea91bb4ad Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 13 Dec 2005 00:27:10 +0000 Subject: From kh_pylon: You have to put Py_RETURN_NONE; inside { }; it's a two-line macro Aparently breaks MacOS. --- source/blender/python/api2_2x/Image.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/python') 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; } -- cgit v1.2.3