fix #T37892 BL_ArmatureConstraint.active returns wrong value

patch (with changes from me) by Séverin Lemaignan (skadge)
This commit is contained in:
Dalai Felinto 2014-01-14 13:19:22 -02:00
parent 54e56cd309
commit dfac6c4189
Notes: blender-bot 2023-02-14 11:27:32 +01:00
Referenced by issue #38215, Caminandes file crashes Blender
Referenced by issue #37892, BL_ArmatureConstraint.active returns wrong value
1 changed files with 1 additions and 1 deletions

View File

@ -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: