diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-07-21 13:53:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-07-21 13:54:35 +0300 |
commit | a06b04f92dc6741cc5079bf7c67eb38f973b8e45 (patch) | |
tree | a6c1a8b49fb72522442149a9dc45b11173304be9 /source/blender/depsgraph/intern | |
parent | 2034e8c42dd9c09952196fb12a82adde696ac05d (diff) |
Cleanup: Simplify relation flags assignment
Diffstat (limited to 'source/blender/depsgraph/intern')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc index 1269ebeda4e..f36d94c7563 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc @@ -2198,8 +2198,7 @@ void DepsgraphRelationBuilder::build_object_data_geometry(Object *object) * data mask to be used. We add relation here to ensure object is never * evaluated prior to Scene's CoW is ready. */ OperationKey scene_key(&scene_->id, NodeType::PARAMETERS, OperationCode::SCENE_EVAL); - Relation *rel = add_relation(scene_key, obdata_ubereval_key, "CoW Relation"); - rel->flag |= RELATION_FLAG_NO_FLUSH; + add_relation(scene_key, obdata_ubereval_key, "CoW Relation", RELATION_FLAG_NO_FLUSH); /* Modifiers */ if (object->modifiers.first != nullptr) { ModifierUpdateDepsgraphContext ctx = {}; |