Fix T72216 Copied Particles not refreshing in the viewport

The depsgraph was not tagged for relations update after the copy, which
means it was incomplete and thus didn't update the copied particle sim.
This commit is contained in:
2020-01-21 15:30:07 +01:00
parent 79bd553f06
commit 2e4fbd327f

View File

@@ -1260,6 +1260,11 @@ 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);
}
if ((changed_tot == 0 && fail == 0) || fail) {
BKE_reportf(op->reports,
RPT_ERROR,