From 88097e99099b8bea9c9e435d7c728afaa8bc24ff Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 25 Jul 2009 19:34:38 +0000 Subject: - BGE Python API converting a mesh from a python arg was broken but happened to work if the uninitialized pointer was not NULL. - iris.c - looks like a copy/paste error, was using rect where it could not have been initialized. --- source/gameengine/Ketsji/KX_MeshProxy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gameengine') diff --git a/source/gameengine/Ketsji/KX_MeshProxy.cpp b/source/gameengine/Ketsji/KX_MeshProxy.cpp index 11effa1ca98..ee5813ad854 100644 --- a/source/gameengine/Ketsji/KX_MeshProxy.cpp +++ b/source/gameengine/Ketsji/KX_MeshProxy.cpp @@ -347,7 +347,7 @@ bool ConvertPythonToMesh(PyObject * value, RAS_MeshObject **object, bool py_none KX_MeshProxy *kx_mesh = static_castBGE_PROXY_REF(value); /* sets the error */ - if (*object==NULL) { + if (kx_mesh==NULL) { PyErr_Format(PyExc_SystemError, "%s, " BGE_PROXY_ERROR_MSG, error_prefix); return false; } -- cgit v1.2.3