Commit: dfac6c4189b0497f19c988d536464703fda09c39
Author: Dalai Felinto
Date: Tue Jan 14 13:19:22 2014 -0200
https://developer.blender.org/rBdfac6c4189b0497f19c988d536464703fda09c39
fix #T37892 BL_ArmatureConstraint.active returns wrong value
patch (with changes from me) by Séverin Lemaignan (skadge)
===================================================================
M source/gameengine/Converter/BL_ArmatureConstraint.cpp
===================================================================
diff --git a/source/gameengine/Converter/BL_ArmatureConstraint.cpp
b/source/gameengine/Converter/BL_ArmatureConstraint.cpp
index 1e6e3557..e515574 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:
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs