diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-06-17 11:27:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-06-17 11:27:27 +0400 |
commit | 758450ee49722db4f2f6464e3f86696237928a8d (patch) | |
tree | bcd4f390a628f2dd951a3b8aa2fa2135da071d06 /source/gameengine/Ketsji | |
parent | 1563ae8098d56fcd0590652b8d8e2cd0048bdc7b (diff) |
BGE: Camera.getScreenPosition wasn't working because of an unhandled exception when called with a non vector argument (object or object name).
Diffstat (limited to 'source/gameengine/Ketsji')
-rw-r--r-- | source/gameengine/Ketsji/KX_Camera.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_Camera.cpp b/source/gameengine/Ketsji/KX_Camera.cpp index 98ea25c135a..473ebbd74bf 100644 --- a/source/gameengine/Ketsji/KX_Camera.cpp +++ b/source/gameengine/Ketsji/KX_Camera.cpp @@ -923,6 +923,8 @@ KX_PYMETHODDEF_DOC_O(KX_Camera, getScreenPosition, if (!PyVecTo(value, vect)) { + PyErr_Clear(); + if(ConvertPythonToGameObject(value, &obj, true, "")) { PyErr_Clear(); |