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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user