Fix #29146: object used for particle instancing did not update when affected
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 4 Nov 2011 12:53:46 +0000 (12:53 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Fri, 4 Nov 2011 12:53:46 +0000 (12:53 +0000)
by an object on a hidden layer. Dependency was set in the wrong direction.

source/blender/blenkernel/intern/depsgraph.c

index 9d51571346f2a0a5ea7f2860d4b142f54a1e3eb0..286854f345cff9202181553fe6f31975ab2292f3 100644 (file)
@@ -591,9 +591,9 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Scene *scene, O
 
                        if(part->ren_as == PART_DRAW_OB && part->dup_ob) {
                                node2 = dag_get_node(dag, part->dup_ob);
-                               dag_add_relation(dag, node, node2, DAG_RL_OB_OB, "Particle Object Visualisation");
+                               dag_add_relation(dag, node2, node, DAG_RL_OB_OB, "Particle Object Visualisation");
                                if(part->dup_ob->type == OB_MBALL)
-                                       dag_add_relation(dag, node, node2, DAG_RL_DATA_DATA, "Particle Object Visualisation");
+                                       dag_add_relation(dag, node2, node, DAG_RL_DATA_DATA, "Particle Object Visualisation");
                        }
 
                        if(part->ren_as == PART_DRAW_GR && part->dup_group) {