diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-05-03 05:13:51 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-05-03 05:13:51 +0400 |
commit | 854fd940165736db01eeff05719f1a60a6a89a8b (patch) | |
tree | f3269fc7c96cf8f8b685ec9fde379504609a6988 /source/gameengine/Expressions/Value.h | |
parent | d92bd6bb0421ff98b209aba3aac34edfd1a08ab3 (diff) |
bge py api: raise an overflow exception when assigning a float to a bge object which is out of the float range.
also avoid raising exceptions by ConvertPythonToValue when they will be ignored.
Diffstat (limited to 'source/gameengine/Expressions/Value.h')
-rw-r--r-- | source/gameengine/Expressions/Value.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/Value.h b/source/gameengine/Expressions/Value.h index e9bb6b1ba3c..db7d69a638f 100644 --- a/source/gameengine/Expressions/Value.h +++ b/source/gameengine/Expressions/Value.h @@ -220,7 +220,7 @@ public: return NULL; } - virtual CValue *ConvertPythonToValue(PyObject *pyobj, const char *error_prefix); + virtual CValue *ConvertPythonToValue(PyObject *pyobj, const bool do_type_exception, const char *error_prefix); static PyObject *pyattr_get_name(void *self, const KX_PYATTRIBUTE_DEF *attrdef); |