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