diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-11 15:28:03 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-11 15:28:03 +0300 |
commit | 690a5f0e500b8c72e7ed7ba0d7c6068fe80c6991 (patch) | |
tree | b08f01b74c105820d35e4d92dfd931ba684bd9b4 /source/blender/depsgraph/intern | |
parent | 210bedd7e35107964ee8af1f2db9921c4b665ee7 (diff) |
Depsgraph: Remove workaround for scene free
No functional changes commit ;)
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc index f36f2ecdb46..7fd59f6408c 100644 --- a/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc +++ b/source/blender/depsgraph/intern/eval/deg_eval_copy_on_write.cc @@ -819,20 +819,6 @@ void deg_free_copy_on_write_datablock(ID *id_cow) ob_cow->data = NULL; break; } - case ID_SCE: - { - /* Special case for scene: we use explicit function call which - * ensures no access to other datablocks is done. - */ - /* Not sure why this is needed? If id_cow scene has been correctly created outside of Main database, - * then freeing it with regular BKE_id_free should properly *not* do any - * children datablock user refcount manipulation... --mont29 */ - Scene *scene = (Scene *)id_cow; - BKE_scene_free_ex(scene, false); - BKE_libblock_free_data(id_cow, false); - id_cow->name[0] = '\0'; - return; - } default: break; } |