Blender
V4.3
source
blender
depsgraph
intern
node
deg_node_time.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
9
#include "
intern/node/deg_node_time.hh
"
10
11
#include "
DNA_scene_types.h
"
12
13
#include "
intern/depsgraph.hh
"
14
#include "
intern/depsgraph_relation.hh
"
15
16
namespace
blender::deg
{
17
18
void
TimeSourceNode::tag_update
(
Depsgraph
*
/*graph*/
,
eUpdateSource
/*source*/
)
19
{
20
tagged_for_update
=
true
;
21
}
22
23
void
TimeSourceNode::flush_update_tag
(
Depsgraph
*graph)
24
{
25
if
(!
tagged_for_update
) {
26
return
;
27
}
28
for
(
Relation
*rel :
outlinks
) {
29
Node
*node = rel->to;
30
node->
tag_update
(graph,
DEG_UPDATE_SOURCE_TIME
);
31
}
32
}
33
34
}
// namespace blender::deg
DNA_scene_types.h
deg_node_time.hh
depsgraph.hh
depsgraph_relation.hh
blender::deg
Definition
DEG_depsgraph_light_linking.hh:18
blender::deg::eUpdateSource
eUpdateSource
Definition
depsgraph_type.hh:61
blender::deg::DEG_UPDATE_SOURCE_TIME
@ DEG_UPDATE_SOURCE_TIME
Definition
depsgraph_type.hh:63
blender::deg::Depsgraph
Definition
depsgraph.hh:47
blender::deg::Node
Definition
deg_node.hh:153
blender::deg::Node::tag_update
virtual void tag_update(Depsgraph *, eUpdateSource)
Definition
deg_node.hh:199
blender::deg::Node::outlinks
Relations outlinks
Definition
deg_node.hh:181
blender::deg::Relation
Definition
depsgraph_relation.hh:37
blender::deg::TimeSourceNode::flush_update_tag
void flush_update_tag(Depsgraph *graph)
Definition
deg_node_time.cc:23
blender::deg::TimeSourceNode::tag_update
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override
Definition
deg_node_time.cc:18
blender::deg::TimeSourceNode::tagged_for_update
bool tagged_for_update
Definition
deg_node_time.hh:17
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0