diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-24 16:32:30 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-24 17:04:11 +0300 |
commit | 86faf8ac844f8d227a4c4fada7d5eb28a93ee6a7 (patch) | |
tree | 0ab712910a5087155a865ef6875e112212dc063f /source/blender/blenkernel | |
parent | 97b2483a7a78253fcbd4dd5d114a1c7a8668c4ef (diff) |
Depsgraph: Remove shortcut of freeing scene's depsgraph
It will not be possible to do that after depsgraph becomes more context
oriented. Which means, all code will need to explicitly tell which graph
to free,
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 5477ab97201..7370bd8a47e 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -2457,7 +2457,7 @@ void BKE_scene_ensure_depsgraph_hash(Scene *scene) void BKE_scene_free_depsgraph_hash(Scene *scene) { /* TODO(sergey): Keep this for until we get rid of depsgraph_legacy. */ - DEG_scene_graph_free(scene); + DEG_graph_free(scene->depsgraph_legacy); if (scene->depsgraph_hash == NULL) { return; } |