Blender V5.3
deg_builder_nodes_scene.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2013 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
10
11#include "DNA_node_types.h"
12#include "DNA_scene_types.h"
13
14#include "BLI_listbase.hh"
15
16namespace blender::deg {
17
19{
20 scene_ = scene;
21 view_layer_ = view_layer;
22 const bool build_compositor = (scene->r.scemode & R_DOCOMP);
23 const bool build_sequencer = (scene->r.scemode & R_DOSEQ);
24 IDNode *id_node = add_id_node(&scene->id);
27 build_animdata(&scene->id);
29 build_scene_audio(scene);
30 if (build_compositor) {
32 }
33 if (build_sequencer) {
35 build_scene_speakers(scene, view_layer);
36 }
37 build_scene_camera(scene);
38}
39
41{
42 if (scene->camera != nullptr) {
44 }
45 for (TimeMarker &marker : scene->markers) {
46 if (!ELEM(marker.camera, nullptr, scene->camera)) {
48 }
49 }
50}
51
67
69{
71 return;
72 }
73
74 add_operation_node(&scene->id,
77 [](blender::Depsgraph * /*depsgraph*/) {
78 /* Empty evaluate function, but needed to make sure the operation is not
79 * considered a no-op. */
80 });
81
82 for (SceneCompositorEffect &effect : scene->compositor_effects) {
83 if (!effect.node_group || ID_MISSING(effect.node_group)) {
84 continue;
85 }
88 }
89}
90
91} // namespace blender::deg
#define ID_MISSING(_id)
Definition DNA_ID.h:695
#define ELEM(...)
bool check_is_built_and_tag(ID *id, int tag=TAG_COMPLETE)
virtual void build_scene_parameters(Scene *scene)
virtual void build_scene_sequencer(Scene *scene)
virtual void build_object(int base_index, Object *object, eDepsNode_LinkedState_Type linked_state, bool is_visible)
virtual void build_scene_speakers(Scene *scene, ViewLayer *view_layer)
OperationNode * add_operation_node(ComponentNode *comp_node, OperationCode opcode, const DepsEvalOperationCb &op=nullptr, const char *name="", int name_tag=-1)
virtual void build_scene_camera(Scene *scene)
virtual void build_scene_audio(Scene *scene)
virtual void build_scene_render(Scene *scene, ViewLayer *view_layer)
virtual void build_nodetree(bNodeTree *ntree)
virtual void build_idproperties(IDProperty *id_property)
virtual void build_scene_compositor(Scene *scene)
@ DEG_ID_LINKED_INDIRECTLY
IDProperty * system_properties
Definition DNA_ID.h:490
IDProperty * properties
Definition DNA_ID.h:481
struct IDProperty * system_properties
struct Object * camera
ListBaseT< TimeMarker > markers
ListBaseT< SceneCompositorEffect > compositor_effects
struct RenderData r
struct Object * camera
struct IDProperty * prop
eDepsNode_LinkedState_Type linked_state