Bugfix for constraint lagging with local ipo's. For some reason
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 11 Dec 2007 14:58:23 +0000 (14:58 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 11 Dec 2007 14:58:23 +0000 (14:58 +0000)
the depsgraph relations for constraints with a local ipo were being
skipped, but I have no idea why this code was added? Uncommenting
it seems to work fine.

source/blender/blenkernel/intern/depsgraph.c

index 1c5ec61a22e2b8fdb97d3119fcbe8946fca8297c..1076641b4c5b51f35697002b16b12a2ce9688c55 100644 (file)
@@ -2189,7 +2189,11 @@ void DAG_pose_sort(Object *ob)
                                                        node2 = dag_get_node(dag, target);
                                                        dag_add_relation(dag, node2, node, 0);
                                                        dag_add_parent_relation(dag, node2, node, 0);
-                                                       cti= NULL;      /* trick to get next loop skipped */
+
+                                                       /* uncommented this line, results in dependencies
+                                                        * not being added properly for this constraint,
+                                                        * what is the purpose of this? - brecht */
+                                                       /*cti= NULL;*/  /* trick to get next loop skipped */
                                                }
                                        }
                                }