diff options
Diffstat (limited to 'source/gameengine/Ketsji/KX_VertexProxy.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_VertexProxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_VertexProxy.cpp b/source/gameengine/Ketsji/KX_VertexProxy.cpp index 3afea847405..7683ce19f19 100644 --- a/source/gameengine/Ketsji/KX_VertexProxy.cpp +++ b/source/gameengine/Ketsji/KX_VertexProxy.cpp @@ -338,6 +338,7 @@ PyObject* KX_VertexProxy::PySetRGBA(PyObject*, m_vertex->SetRGBA(MT_Vector4(r, g, b, a)); Py_Return; } + PyErr_Clear(); int rgba; if (PyArg_ParseTuple(args,"i",&rgba)) @@ -345,7 +346,8 @@ PyObject* KX_VertexProxy::PySetRGBA(PyObject*, m_vertex->SetRGBA(rgba); Py_Return; } - Py_Return; + + return NULL; } |