[Bf-blender-cvs] [8a8ee2c] master: fix #T37894: IK constraint desactivation does not work as expected

Dalai Felinto noreply at git.blender.org
Tue Jan 14 17:45:51 CET 2014


Commit: 8a8ee2c601da8b744d6825db46b30a8bfb111b22
Author: Dalai Felinto
Date:   Tue Jan 14 14:40:18 2014 -0200
https://developer.blender.org/rB8a8ee2c601da8b744d6825db46b30a8bfb111b22

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

patch suggested by Séverin Lemaignan (skadge)

===================================================================

M	source/blender/ikplugin/intern/itasc_plugin.cpp

===================================================================

diff --git a/source/blender/ikplugin/intern/itasc_plugin.cpp b/source/blender/ikplugin/intern/itasc_plugin.cpp
index a61cefc..50b538b 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 */




More information about the Bf-blender-cvs mailing list