diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-27 13:17:36 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-02-27 16:50:42 +0300 |
commit | 87066782e720257bef19450f0e3f7c739101b9b8 (patch) | |
tree | 40240cc52841fa80b3b33ff7bb0cb5ca513d7649 /source/blender/depsgraph/intern/builder/deg_builder.h | |
parent | 05dc3d43caf5a5153a8bd1e69d5f77b0e019aa3d (diff) |
Depsgraph: Make it easier to control which bases being pulled into the graph
Just de-duplicates some logic. Should be no functional changes.
Diffstat (limited to 'source/blender/depsgraph/intern/builder/deg_builder.h')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder.h b/source/blender/depsgraph/intern/builder/deg_builder.h index a8f3318d9e2..e64ae98c6ce 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder.h +++ b/source/blender/depsgraph/intern/builder/deg_builder.h @@ -23,12 +23,25 @@ #pragma once +struct Base; struct Main; namespace DEG { struct Depsgraph; +class DepsgraphBuilder { +public: + bool needPullBaseIntoGraph(struct Base *base); + +protected: + DepsgraphBuilder(Main *bmain, Depsgraph *graph); + + /* State which never changes, same for the whole builder time. */ + Main *bmain_; + Depsgraph *graph_; +}; + void deg_graph_build_finalize(struct Main *bmain, struct Depsgraph *graph); } // namespace DEG |