diff options
author | Joshua Leung <aligorith@gmail.com> | 2018-05-31 14:42:55 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2018-05-31 14:43:00 +0300 |
commit | f56a9fbad528c7aebce23f065842aa71450c75eb (patch) | |
tree | 6100807916beeb9c350ae900ebfc5b4479889f90 /source/blender/depsgraph/intern/depsgraph.cc | |
parent | 9b4e56c091f0df255cc09607061d130847a5f438 (diff) |
Depsgraph: Remove the "disable-copy-on-write" option completely
After discussion with Sergey and Dalai, we have decided to remove
this option completely. We're getting to the point where it is almost
impossible to really use 2.8 without COW, and keeping the old option
running ends up diverting dev resources away towards tracking down
and fixing problems with a parallel system that will be going away.
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.cc')
-rw-r--r-- | source/blender/depsgraph/intern/depsgraph.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.cc b/source/blender/depsgraph/intern/depsgraph.cc index 32cbee7597c..a247b458cc7 100644 --- a/source/blender/depsgraph/intern/depsgraph.cc +++ b/source/blender/depsgraph/intern/depsgraph.cc @@ -70,18 +70,6 @@ extern "C" { #include "intern/depsgraph_intern.h" #include "util/deg_util_foreach.h" -static bool use_copy_on_write = true; - -bool DEG_depsgraph_use_copy_on_write(void) -{ - return use_copy_on_write; -} - -void DEG_depsgraph_disable_copy_on_write(void) -{ - use_copy_on_write = false; -} - namespace DEG { static DEG_EditorUpdateIDCb deg_editor_update_id_cb = NULL; @@ -340,7 +328,7 @@ IDDepsNode *Depsgraph::add_id_node(ID *id, ID *id_cow_hint) void Depsgraph::clear_id_nodes() { /* Free memory used by ID nodes. */ - if (use_copy_on_write) { + { /* Stupid workaround to ensure we free IDs in a proper order. */ foreach (IDDepsNode *id_node, id_nodes) { if (id_node->id_cow == NULL) { |