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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-12-06 12:38:34 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-12-06 12:38:34 +0300
commit5389ca18596aee628c9c05044ce8bbd6188a3f45 (patch)
tree3b2448bb7381d2b29cf47f1cca97d983b8e2d686 /source/blender/depsgraph/intern/depsgraph.h
parent16b9e91bf1db35b54a292049ec8d1c2d5669c163 (diff)
parent1027ddfa2d2dc115da8fc48d0bea801a1ff1ce2b (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/depsgraph/intern/depsgraph.h')
-rw-r--r--source/blender/depsgraph/intern/depsgraph.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph.h b/source/blender/depsgraph/intern/depsgraph.h
index d841ae045f2..8a34be0c7a2 100644
--- a/source/blender/depsgraph/intern/depsgraph.h
+++ b/source/blender/depsgraph/intern/depsgraph.h
@@ -123,11 +123,21 @@ struct Depsgraph {
/* Add new relationship between two nodes. */
DepsRelation *add_new_relation(OperationDepsNode *from,
OperationDepsNode *to,
- const char *description);
+ const char *description,
+ bool check_unique = false);
DepsRelation *add_new_relation(DepsNode *from,
DepsNode *to,
- const char *description);
+ const char *description,
+ bool check_unique = false);
+
+ /* Check whether two nodes are connected by relation with given
+ * description. Description might be NULL to check ANY relation between
+ * given nodes.
+ */
+ DepsRelation *check_nodes_connected(const DepsNode *from,
+ const DepsNode *to,
+ const char *description);
/* Tag a specific node as needing updates. */
void add_entry_tag(OperationDepsNode *node);