fix #T37894: IK constraint desactivation does not work as expected

patch suggested by Séverin Lemaignan (skadge)
This commit is contained in:
Dalai Felinto 2014-01-14 14:40:18 -02:00
parent c5d3abc863
commit 8a8ee2c601
Notes: blender-bot 2023-02-14 11:27:32 +01:00
Referenced by issue #37894, IK constraint desactivation does not work as expected
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ static bool constraint_valid(bConstraint *con)
if (data->flag & CONSTRAINT_IK_AUTO)
return true;
if (con->flag & CONSTRAINT_DISABLE)
if (con->flag & (CONSTRAINT_DISABLE | CONSTRAINT_OFF))
return false;
if (is_cartesian_constraint(con)) {
/* cartesian space constraint */