diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/physics/particle_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/physics/particle_edit.c b/source/blender/editors/physics/particle_edit.c index a5ca3cf8531..fcf895fbd3c 100644 --- a/source/blender/editors/physics/particle_edit.c +++ b/source/blender/editors/physics/particle_edit.c @@ -61,6 +61,7 @@ #include "BKE_modifier.h" #include "BKE_particle.h" #include "BKE_report.h" +#include "BKE_scene.h" #include "BKE_bvhutils.h" #include "BKE_pointcache.h" @@ -4511,7 +4512,7 @@ static int particle_edit_toggle_exec(bContext *C, wmOperator *op) * rewriting the while edit mode code. */ ob->id.recalc |= (ID_RECALC_TRANSFORM | ID_RECALC_GEOMETRY); - DEG_evaluate_on_refresh(depsgraph); + BKE_scene_graph_update_tagged(depsgraph, CTX_data_main(C)); BKE_object_eval_transform_all(depsgraph, scene, ob); BKE_object_handle_data_update(depsgraph, scene, ob); ob->mode |= mode_flag; |