diff options
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 1e034a27e64..6ae826a20b1 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -2464,5 +2464,8 @@ void BKE_scene_free_depsgraph_hash(Scene *scene) Depsgraph *BKE_scene_get_depsgraph(Scene *scene, SceneLayer *scene_layer) { (void) scene_layer; + if (scene->depsgraph_legacy == NULL) { + scene->depsgraph_legacy = DEG_graph_new(); + } return scene->depsgraph_legacy; } |