Make sure all dependency graphs are updated on particles system copy

This commit is contained in:
Sergey Sharybin 2022-10-17 11:03:21 +02:00
parent 89effac57e
commit 11bb38e887
1 changed files with 1 additions and 2 deletions

View File

@ -1267,8 +1267,7 @@ static int copy_particle_systems_exec(bContext *C, wmOperator *op)
CTX_DATA_END;
if (changed_tot > 0) {
Depsgraph *depsgraph = CTX_data_depsgraph_pointer(C);
DEG_graph_tag_relations_update(depsgraph);
DEG_relations_tag_update(CTX_data_main(C));
}
if ((changed_tot == 0 && fail == 0) || fail) {