diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-12 15:41:46 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-06-12 15:41:46 +0300 |
commit | 1ba6ef25b64af4f399134faae3f9c4d7bca29dab (patch) | |
tree | c5599c1b8052a2a722221f2c04845d0904876b89 /source/blender/depsgraph/intern/builder/deg_builder_relations.h | |
parent | 987ec1d030bbe726a250f2ca5910b001b72ac348 (diff) |
Depsgraph: Add utility function to get depsgraph from node handle
The idea is to use this function for modifiers' updateDepsgraph functions
instead of doing direct scene->depsgraph access.
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder_relations.h')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_relations.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations.h b/source/blender/depsgraph/intern/builder/deg_builder_relations.h index 411f3be4036..c5a73ba2d98 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations.h +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations.h @@ -233,6 +233,8 @@ struct DepsgraphRelationBuilder template <typename KeyType> OperationDepsNode *find_operation_node(const KeyType &key); + Depsgraph *getGraph(); + protected: RootDepsNode *find_node(const RootKey &key) const; TimeSourceDepsNode *find_node(const TimeSourceKey &key) const; |