BGE: Camera.getScreenPosition wasn't working because of an unhandled exception when...
authorCampbell Barton <ideasman42@gmail.com>
Fri, 17 Jun 2011 07:27:27 +0000 (07:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 17 Jun 2011 07:27:27 +0000 (07:27 +0000)
source/gameengine/Ketsji/KX_Camera.cpp

index 98ea25c135ac5fcb4dca76f412e5cb080274a3e5..473ebbd74bfe38d9f211c875b6c02e224b497601 100644 (file)
@@ -923,6 +923,8 @@ KX_PYMETHODDEF_DOC_O(KX_Camera, getScreenPosition,
 
        if (!PyVecTo(value, vect))
        {
+               PyErr_Clear();
+
                if(ConvertPythonToGameObject(value, &obj, true, ""))
                {
                        PyErr_Clear();