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>2019-02-27 13:17:36 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-02-27 16:50:42 +0300
commit87066782e720257bef19450f0e3f7c739101b9b8 (patch)
tree40240cc52841fa80b3b33ff7bb0cb5ca513d7649 /source/blender/depsgraph/intern/builder/deg_builder_nodes.h
parent05dc3d43caf5a5153a8bd1e69d5f77b0e019aa3d (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_nodes.h')
-rw-r--r--source/blender/depsgraph/intern/builder/deg_builder_nodes.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_nodes.h b/source/blender/depsgraph/intern/builder/deg_builder_nodes.h
index 88d5dee535a..0bf4c13d515 100644
--- a/source/blender/depsgraph/intern/builder/deg_builder_nodes.h
+++ b/source/blender/depsgraph/intern/builder/deg_builder_nodes.h
@@ -23,14 +23,14 @@
#pragma once
+#include "intern/builder/deg_builder.h"
#include "intern/builder/deg_builder_map.h"
#include "intern/depsgraph_type.h"
-
-#include "DEG_depsgraph.h"
-
#include "intern/node/deg_node_id.h"
#include "intern/node/deg_node_operation.h"
+#include "DEG_depsgraph.h"
+
struct Base;
struct CacheFile;
struct Camera;
@@ -74,7 +74,8 @@ struct Node;
struct OperationNode;
struct TimeSourceNode;
-struct DepsgraphNodeBuilder {
+class DepsgraphNodeBuilder : public DepsgraphBuilder {
+public:
DepsgraphNodeBuilder(Main *bmain, Depsgraph *graph);
~DepsgraphNodeBuilder();
@@ -259,10 +260,6 @@ protected:
bool is_reference,
void *user_data);
- /* State which never changes, same for the whole builder time. */
- Main *bmain_;
- Depsgraph *graph_;
-
/* State which demotes currently built entities. */
Scene *scene_;
ViewLayer *view_layer_;