diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-06-06 15:13:46 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-06-06 15:13:46 +0300 |
commit | a8ae68aa5c9af736583b57c506be2aaabac584b2 (patch) | |
tree | 264ee7fa6cf0020c008014226e87b9870fb408ad | |
parent | 2088bb0d49e77129e608a780a91d1695fd9db805 (diff) |
Fix crash when file is saved in particle edit mode
Depsgraph is not available on file load yet.
-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; |