Dependency graph: changed DAG_id_flush_update to DAG_id_tag_update. Now it

only tags the ID and does the actual flush/update delayed, before the next
redraw. For objects the update was already delayed, just flushing wasn't
yet.

This should help performance in python and animation editors, by making 
calls to RNA property update quicker. Still need to add calls in a few
places where this was previously avoided due to bad performance.
This commit is contained in:
2010-12-05 18:59:23 +00:00
parent 07692fc59b
commit b110c7c8f2
87 changed files with 462 additions and 459 deletions

View File

@@ -1316,7 +1316,7 @@ void load_editMesh(Scene *scene, Object *obedit)
void remake_editMesh(Scene *scene, Object *ob)
{
make_editMesh(scene, ob);
DAG_id_flush_update(&ob->id, OB_RECALC_DATA);
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);
BIF_undo_push("Undo all changes");
}
@@ -1432,8 +1432,8 @@ static int mesh_separate_selected(wmOperator *op, Main *bmain, Scene *scene, Bas
/* hashedges are invalid now, make new! */
editMesh_set_hash(em);
DAG_id_flush_update(&obedit->id, OB_RECALC_DATA);
DAG_id_flush_update(&basenew->object->id, OB_RECALC_DATA);
DAG_id_tag_update(&obedit->id, OB_RECALC_DATA);
DAG_id_tag_update(&basenew->object->id, OB_RECALC_DATA);
BKE_mesh_end_editmesh(me, em);