From 2e4fbd327f8eae05a10e19dbfc3144593db38ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 21 Jan 2020 15:30:07 +0100 Subject: [PATCH] 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. --- source/blender/editors/physics/particle_object.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c index 4df74434c6a..c666697d15a 100644 --- a/source/blender/editors/physics/particle_object.c +++ b/source/blender/editors/physics/particle_object.c @@ -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,