diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-01-21 17:30:07 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-01-21 17:30:07 +0300 |
commit | 2e4fbd327f8eae05a10e19dbfc3144593db38ac9 (patch) | |
tree | a693a1baae1fdccb21bb072f4a8c541af7464530 /source/blender/editors/physics | |
parent | 79bd553f06283d7e30c76e3851c2444fa9a73ffb (diff) |
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.
Diffstat (limited to 'source/blender/editors/physics')
-rw-r--r-- | source/blender/editors/physics/particle_object.c | 5 |
1 files changed, 5 insertions, 0 deletions
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, |