From a217e546a4f0e5894e958e18acbcc41425e73076 Mon Sep 17 00:00:00 2001 From: Ken Hughes Date: Tue, 22 Aug 2006 18:08:57 +0000 Subject: [PATCH] ===Python API=== Fix return value problem in Mesh_getFakeUsers(): compiler warning in this case was indicating a real bug. --- source/blender/python/api2_2x/Mesh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/python/api2_2x/Mesh.c b/source/blender/python/api2_2x/Mesh.c index 7bdcb377dae..926b4f4add1 100644 --- a/source/blender/python/api2_2x/Mesh.c +++ b/source/blender/python/api2_2x/Mesh.c @@ -6743,9 +6743,9 @@ static PyObject *Mesh_getUsers( BPy_Mesh * self ) static PyObject *Mesh_getFakeUser( BPy_Mesh * self ) { if (self->mesh->id.flag & LIB_FAKEUSER) - EXPP_incr_ret_True(); + Py_RETURN_TRUE; else - EXPP_incr_ret_False(); + Py_RETURN_FALSE; } static int Mesh_setFakeUser( BPy_Mesh * self, PyObject * value )