Blender  V2.93
deg_builder_relations_scene.cc
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2013 Blender Foundation.
17  * All rights reserved.
18  */
19 
25 
26 #include "DNA_scene_types.h"
27 
28 namespace blender::deg {
29 
31 {
32  scene_ = scene;
33  const bool build_compositor = (scene->r.scemode & R_DOCOMP);
34  const bool build_sequencer = (scene->r.scemode & R_DOSEQ);
38  if (build_compositor) {
40  }
41  if (build_sequencer) {
43  build_scene_speakers(scene, view_layer);
44  }
45  if (scene->camera != nullptr) {
47  }
48 }
49 
51 {
53  return;
54  }
57  OperationKey parameters_eval_key(
60  add_relation(parameters_eval_key, scene_eval_key, "Parameters -> Scene Eval");
61 
62  LISTBASE_FOREACH (TimeMarker *, marker, &scene->markers) {
63  build_idproperties(marker->prop);
64  }
65 }
66 
68 {
70  return;
71  }
72  if (scene->nodetree == nullptr) {
73  return;
74  }
76 }
77 
78 } // namespace blender::deg
#define LISTBASE_FOREACH(type, var, list)
Definition: BLI_listbase.h:172
#define R_DOCOMP
#define R_DOSEQ
bool checkIsBuiltAndTag(ID *id, int tag=TAG_COMPLETE)
virtual void build_scene_speakers(Scene *scene, ViewLayer *view_layer)
virtual void build_scene_sequencer(Scene *scene)
virtual void build_scene_render(Scene *scene, ViewLayer *view_layer)
virtual void build_nodetree(bNodeTree *ntree)
Relation * add_relation(const KeyFrom &key_from, const KeyTo &key_to, const char *description, int flags=0)
virtual void build_idproperties(IDProperty *id_property)
Scene scene
IDProperty * properties
Definition: DNA_ID.h:314
struct bNodeTree * nodetree
struct RenderData r
struct Object * camera
ListBase markers