From 8a8ee2c601da8b744d6825db46b30a8bfb111b22 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 14 Jan 2014 14:40:18 -0200 Subject: fix #T37894: IK constraint desactivation does not work as expected MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit patch suggested by Séverin Lemaignan (skadge) --- source/blender/ikplugin/intern/itasc_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/ikplugin') diff --git a/source/blender/ikplugin/intern/itasc_plugin.cpp b/source/blender/ikplugin/intern/itasc_plugin.cpp index a61cefcff69..50b538b002f 100644 --- a/source/blender/ikplugin/intern/itasc_plugin.cpp +++ b/source/blender/ikplugin/intern/itasc_plugin.cpp @@ -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 */ -- cgit v1.2.3