Fix for metaballs used as dupli-object for particle
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 12 Jul 2012 11:22:46 +0000 (11:22 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 12 Jul 2012 11:22:46 +0000 (11:22 +0000)
It used to be a dependency cycle which lead to incorrect or
missed tesselation on some circumstances.

Seems to be introduced in rev41627.

This commit seems to behaving properly on simple cases,
probably could fail in some other cases, so need to be
checked further.

Discovered when was looking into:
    #32034: Metaball used as render object(group) for particle will display wire only.

source/blender/blenkernel/intern/depsgraph.c

index 31621dffdef7f0d3ec09af505a9f1a248cf88f97..4026d3f06d31343925f0674991f622d7791c43e5 100644 (file)
@@ -672,7 +672,7 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Scene *scene, O
                                 * engine instancing assumes particular ordering of objects in list */
                                dag_add_relation(dag, node, node2, DAG_RL_OB_OB, "Particle Object Visualization");
                                if (part->dup_ob->type == OB_MBALL)
-                                       dag_add_relation(dag, node2, node, DAG_RL_DATA_DATA, "Particle Object Visualization");
+                                       dag_add_relation(dag, node, node2, DAG_RL_DATA_DATA, "Particle Object Visualization");
                        }
 
                        if (part->ren_as == PART_DRAW_GR && part->dup_group) {