Fix for bug #6753: metaballs instanced by a particle system did not

refresh properly, also fixed a memory leak.
This commit is contained in:
Brecht Van Lommel
2008-04-12 14:30:17 +00:00
parent ff77d00544
commit 0b60ff01b4
2 changed files with 5 additions and 0 deletions

View File

@@ -610,6 +610,8 @@ static void build_dag_object(DagForest *dag, DagNode *scenenode, Object *ob, int
if(part->draw_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);
if(part->dup_ob->type == OB_MBALL)
dag_add_relation(dag, node, node2, DAG_RL_DATA_DATA);
}
if(part->draw_as == PART_DRAW_GR && part->dup_group) {

View File

@@ -426,6 +426,9 @@ int next_object(int val, Base **base, Object **ob)
duplilist= object_duplilist(G.scene, (*base)->object);
dupob= duplilist->first;
if(!dupob)
free_object_duplilist(duplilist);
}
}
}