diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-01-28 15:14:29 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-01-28 15:16:49 +0300 |
commit | 133966423aa61f614541ef910c34aea3d2275057 (patch) | |
tree | e645a0986f51ec4b2e8174b2a1d56e355ac65c8a /source/blender/depsgraph/intern/builder/deg_builder_relations.cc | |
parent | a51ff5208b47254122eefb4ed9cc832fb4885012 (diff) |
Revert "Depsgraph: Remove redundant copy-on-write operations"
This reverts commit 76fd41e9db19dd2a33fae0e690f76792b13d49ed. This should have
been reverted along with 0f95f51361d73fbd8ba8d80b3b65da930dcf3b20, since this
change by itself is causing crashes when the depsgraph accesses a non-existent
copy-on-write component.
Ref T84717
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_relations.cc')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 5f591b4aee0..fcaa3854d37 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -2788,13 +2788,7 @@ void DepsgraphRelationBuilder::build_nested_shapekey(ID *owner, Key *key) void DepsgraphRelationBuilder::build_copy_on_write_relations(IDNode *id_node) { ID *id_orig = id_node->id_orig; - const ID_Type id_type = GS(id_orig->name); - - if (!deg_copy_on_write_is_needed(id_type)) { - return; - } - TimeSourceKey time_source_key; OperationKey copy_on_write_key(id_orig, NodeType::COPY_ON_WRITE, OperationCode::COPY_ON_WRITE); /* XXX: This is a quick hack to make Alt-A to work. */ |