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:
authorDalai Felinto <dfelinto@gmail.com>2014-01-14 19:19:22 +0400
committerDalai Felinto <dfelinto@gmail.com>2014-01-14 19:22:41 +0400
commitdfac6c4189b0497f19c988d536464703fda09c39 (patch)
treeb18fff66ff980402ff10a38382dcbdce3c75f64b /source/gameengine/Converter/BL_ArmatureConstraint.cpp
parent54e56cd3094aacf642c8b18a63b06a60da30be7e (diff)
fix #T37892 BL_ArmatureConstraint.active returns wrong value
patch (with changes from me) by Séverin Lemaignan (skadge)
Diffstat (limited to 'source/gameengine/Converter/BL_ArmatureConstraint.cpp')
-rw-r--r--source/gameengine/Converter/BL_ArmatureConstraint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Converter/BL_ArmatureConstraint.cpp b/source/gameengine/Converter/BL_ArmatureConstraint.cpp
index 1e6e3557aa4..e515574df8b 100644
--- a/source/gameengine/Converter/BL_ArmatureConstraint.cpp
+++ b/source/gameengine/Converter/BL_ArmatureConstraint.cpp
@@ -322,7 +322,7 @@ PyObject *BL_ArmatureConstraint::py_attr_getattr(void *self_v, const struct KX_P
else
return self->m_subtarget->GetProxy();
case BCA_ACTIVE:
- return PyBool_FromLong(constraint->flag & CONSTRAINT_OFF);
+ return PyBool_FromLong((constraint->flag & CONSTRAINT_OFF) == 0);
case BCA_IKWEIGHT:
case BCA_IKTYPE:
case BCA_IKFLAG: