Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2022-03-07 14:37:54 +0300
committerJacques Lucke <jacques@blender.org>2022-03-07 14:37:54 +0300
commit7f578998235d94d193ebe4699af308f932b6af6c (patch)
tree7ffc5e05d5e4f07759e1b2cc1283e287edbc0bbb /source/blender/depsgraph/intern/builder/deg_builder_relations.cc
parent4ffe2fec169c67655aad6a866be3a949b4062108 (diff)
parent00f6e4c99051b6182d9703891278e180366d96c6 (diff)
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_relations.cc')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_relations.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
index faad053e30c..68c644cc422 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
+++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.cc
@@ -1598,6 +1598,14 @@ void DepsgraphRelationBuilder::build_driver_data(ID *id, FCurve *fcu)
add_relation(property_exit_key, parameters_key, "Driven Property -> Properties");
}
}
+
+ /* Assume drivers on a node tree affect the evaluated output of the node tree. In theory we could
+ * check if the driven value actually affects the output, i.e. if it drives a node that is linked
+ * to the output. */
+ if (GS(id_ptr->name) == ID_NT) {
+ ComponentKey ntree_output_key(id_ptr, NodeType::NTREE_OUTPUT);
+ add_relation(driver_key, ntree_output_key, "Drivers -> NTree Output");
+ }
}
void DepsgraphRelationBuilder::build_driver_variables(ID *id, FCurve *fcu)