[Bf-blender-cvs] [11bb38e887d] master: Make sure all dependency graphs are updated on particles system copy
Sergey Sharybin
noreply at git.blender.org
Mon Oct 17 11:03:53 CEST 2022
Commit: 11bb38e887d29635498fb184f6434144546e9fb4
Author: Sergey Sharybin
Date: Mon Oct 17 11:03:21 2022 +0200
Branches: master
https://developer.blender.org/rB11bb38e887d29635498fb184f6434144546e9fb4
Make sure all dependency graphs are updated on particles system copy
===================================================================
M source/blender/editors/physics/particle_object.c
===================================================================
diff --git a/source/blender/editors/physics/particle_object.c b/source/blender/editors/physics/particle_object.c
index 4986ed8f343..210757173eb 100644
--- a/source/blender/editors/physics/particle_object.c
+++ b/source/blender/editors/physics/particle_object.c
@@ -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) {
More information about the Bf-blender-cvs
mailing list