Blender V5.3
pipeline_all_objects.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
13#include "intern/depsgraph.hh"
14
15#include "DNA_layer_types.h"
16
17namespace blender::deg {
18
19namespace {
20
21class AllObjectsNodeBuilder : public DepsgraphNodeBuilder {
22 public:
23 AllObjectsNodeBuilder(Main *bmain, Depsgraph *graph, DepsgraphBuilderCache *cache)
24 : DepsgraphNodeBuilder(bmain, graph, cache)
25 {
26 }
27
28 bool need_pull_base_into_graph(const Base * /*base*/) override
29 {
30 return true;
31 }
32};
33
34class AllObjectsRelationBuilder : public DepsgraphRelationBuilder {
35 public:
36 AllObjectsRelationBuilder(Main *bmain, Depsgraph *graph, DepsgraphBuilderCache *cache)
37 : DepsgraphRelationBuilder(bmain, graph, cache)
38 {
39 }
40
41 bool need_pull_base_into_graph(const Base * /*base*/) override
42 {
43 return true;
44 }
45};
46
47} // namespace
48
53
54std::unique_ptr<DepsgraphNodeBuilder> AllObjectsBuilderPipeline::construct_node_builder()
55{
56 return std::make_unique<AllObjectsNodeBuilder>(bmain_, deg_graph_, &builder_cache_);
57}
58
59std::unique_ptr<DepsgraphRelationBuilder> AllObjectsBuilderPipeline::construct_relation_builder()
60{
61 return std::make_unique<AllObjectsRelationBuilder>(bmain_, deg_graph_, &builder_cache_);
62}
63
64} // namespace blender::deg
std::unique_ptr< DepsgraphRelationBuilder > construct_relation_builder() override
AllObjectsBuilderPipeline(blender::Depsgraph *graph)
std::unique_ptr< DepsgraphNodeBuilder > construct_node_builder() override
ViewLayerBuilderPipeline(blender::Depsgraph *graph)