From 6b1158c14612c5e34ae031dcbafb27e32ed3efbe Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 9 Nov 2007 16:05:04 +0000 Subject: [PATCH] mistake in last commit --- source/blender/python/api2_2x/Geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/python/api2_2x/Geometry.c b/source/blender/python/api2_2x/Geometry.c index f82117205db..344fdcf20a9 100644 --- a/source/blender/python/api2_2x/Geometry.c +++ b/source/blender/python/api2_2x/Geometry.c @@ -310,7 +310,7 @@ static PyObject *M_Geometry_ClosestPointOnLine( PyObject * self, PyObject * args /* do the calculation */ lambda = lambda_cp_line_ex(pt_in, l1, l2, pt_out); - PyTuple_New(2); + ret = PyTuple_New(2); PyTuple_SET_ITEM( ret, 0, newVectorObject(pt_out, 3, Py_NEW) ); PyTuple_SET_ITEM( ret, 1, PyFloat_FromDouble(lambda) ); return ret;