diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-13 23:08:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-13 23:08:57 +0300 |
commit | 6b207579c87340e470c153d2cd077d8f0012f492 (patch) | |
tree | e39f89890d9b5455d409258099333b07302c1f11 /source/gameengine | |
parent | c8fe0daa918799738d409f2cd331bb39208e86e1 (diff) |
invalid value for BGE PyObjects was inverted
Diffstat (limited to 'source/gameengine')
-rw-r--r-- | source/gameengine/Expressions/PyObjectPlus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Expressions/PyObjectPlus.cpp b/source/gameengine/Expressions/PyObjectPlus.cpp index 54a33b76efd..903ac70c27a 100644 --- a/source/gameengine/Expressions/PyObjectPlus.cpp +++ b/source/gameengine/Expressions/PyObjectPlus.cpp @@ -256,7 +256,7 @@ PyAttributeDef PyObjectPlus::Attributes[] = { PyObject* PyObjectPlus::pyattr_get_invalid(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef) { - return PyBool_FromLong(self_v ? 1:0); + return PyBool_FromLong(self_v ? 0:1); } /* note, this is called as a python 'getset, where the PyAttributeDef is the closure */ |