Commit: a8ae68aa5c9af736583b57c506be2aaabac584b2
Author: Sergey Sharybin
Date: Wed Jun 6 14:13:46 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa8ae68aa5c9af736583b57c506be2aaabac584b2
Fix crash when file is saved in particle edit mode
Depsgraph is not available on file load yet.
===================================================================
M source/blender/editors/physics/particle_edit.c
===================================================================
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;
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs