[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [10984] trunk/blender/source/blender/ blenkernel/intern/depsgraph.c: == Clamp To Constraint ==

Joshua Leung aligorith at gmail.com
Wed Jun 20 14:09:05 CEST 2007


Revision: 10984
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=10984
Author:   aligorith
Date:     2007-06-20 14:09:05 +0200 (Wed, 20 Jun 2007)

Log Message:
-----------
== Clamp To Constraint ==

Now when editing the curve that an Object with a Clamp To Constraint uses as its target, the Object's position will be updated in realtime to match to changes in the curve. 

I was going to have this working for bones too, but I haven't got that quite working yet. 

Modified Paths:
--------------
    trunk/blender/source/blender/blenkernel/intern/depsgraph.c

Modified: trunk/blender/source/blender/blenkernel/intern/depsgraph.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/depsgraph.c	2007-06-20 10:24:33 UTC (rev 10983)
+++ trunk/blender/source/blender/blenkernel/intern/depsgraph.c	2007-06-20 12:09:05 UTC (rev 10984)
@@ -573,7 +573,7 @@
 			Object *obt= get_constraint_target(con, &str);
 			
 			node2 = dag_get_node(dag, obt);
-			if(con->type==CONSTRAINT_TYPE_FOLLOWPATH)
+			if(ELEM(con->type, CONSTRAINT_TYPE_FOLLOWPATH, CONSTRAINT_TYPE_CLAMPTO))
 				dag_add_relation(dag, node2, node, DAG_RL_DATA_OB|DAG_RL_OB_OB);
 			else {
 				if(obt->type==OB_ARMATURE && str[0])





More information about the Bf-blender-cvs mailing list