Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-12-13 23:08:57 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-13 23:08:57 +0300
commit6b207579c87340e470c153d2cd077d8f0012f492 (patch)
treee39f89890d9b5455d409258099333b07302c1f11 /source/gameengine/Expressions/PyObjectPlus.cpp
parentc8fe0daa918799738d409f2cd331bb39208e86e1 (diff)
invalid value for BGE PyObjects was inverted
Diffstat (limited to 'source/gameengine/Expressions/PyObjectPlus.cpp')
-rw-r--r--source/gameengine/Expressions/PyObjectPlus.cpp2
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 */