Blender
V5.0
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
8
9
#include "
intern/node/deg_node_time.hh
"
10
11
#include "
intern/depsgraph.hh
"
12
#include "
intern/depsgraph_relation.hh
"
13
14
namespace
blender::deg
{
15
16
void
TimeSourceNode::tag_update
(
Depsgraph
*
/*graph*/
,
eUpdateSource
/*source*/
)
17
{
18
tagged_for_update
=
true
;
19
}
20
21
void
TimeSourceNode::flush_update_tag
(
Depsgraph
*graph)
22
{
23
if
(!
tagged_for_update
) {
24
return
;
25
}
26
for
(
Relation
*rel :
outlinks
) {
27
Node
*node = rel->to;
28
node->
tag_update
(graph,
DEG_UPDATE_SOURCE_TIME
);
29
}
30
}
31
32
}
// namespace blender::deg
deg_node_time.hh
depsgraph.hh
depsgraph_relation.hh
blender::deg
Definition
DEG_depsgraph_light_linking.hh:14
blender::deg::eUpdateSource
eUpdateSource
Definition
depsgraph_type.hh:31
blender::deg::DEG_UPDATE_SOURCE_TIME
@ DEG_UPDATE_SOURCE_TIME
Definition
depsgraph_type.hh:33
blender::deg::Depsgraph
Definition
depsgraph.hh:48
blender::deg::Node::tag_update
virtual void tag_update(Depsgraph *, eUpdateSource)
Definition
deg_node.hh:201
blender::deg::Node::outlinks
Relations outlinks
Definition
deg_node.hh:183
blender::deg::Node::Node
Node()
Definition
deg_node.cc:283
blender::deg::Relation
Definition
depsgraph_relation.hh:35
blender::deg::TimeSourceNode::flush_update_tag
void flush_update_tag(Depsgraph *graph)
Definition
deg_node_time.cc:21
blender::deg::TimeSourceNode::tag_update
void tag_update(Depsgraph *graph, eUpdateSource source) override
Definition
deg_node_time.cc:16
blender::deg::TimeSourceNode::tagged_for_update
bool tagged_for_update
Definition
deg_node_time.hh:17
Generated on
for Blender by
doxygen
1.16.1