Blender
V3.3
source
blender
depsgraph
intern
node
deg_node_time.cc
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2013 Blender Foundation. All rights reserved. */
3
8
#include "
intern/node/deg_node_time.h
"
9
10
#include "
DNA_scene_types.h
"
11
12
#include "
intern/depsgraph.h
"
13
#include "
intern/depsgraph_relation.h
"
14
15
namespace
blender::deg
{
16
17
void
TimeSourceNode::tag_update
(
Depsgraph
*
/*graph*/
,
eUpdateSource
/*source*/
)
18
{
19
tagged_for_update
=
true
;
20
}
21
22
void
TimeSourceNode::flush_update_tag
(
Depsgraph
*
graph
)
23
{
24
if
(!
tagged_for_update
) {
25
return
;
26
}
27
for
(
Relation
*rel :
outlinks
) {
28
Node
*
node
= rel->to;
29
node
->tag_update(
graph
,
DEG_UPDATE_SOURCE_TIME
);
30
}
31
}
32
33
}
// namespace blender::deg
DNA_scene_types.h
node
OperationNode * node
Definition:
deg_builder_cycle.cc:38
graph
Depsgraph * graph
Definition:
deg_builder_cycle.cc:56
deg_node_time.h
depsgraph.h
depsgraph_relation.h
blender::deg
Definition:
deg_builder.cc:40
blender::deg::eUpdateSource
eUpdateSource
Definition:
depsgraph_type.h:61
blender::deg::DEG_UPDATE_SOURCE_TIME
@ DEG_UPDATE_SOURCE_TIME
Definition:
depsgraph_type.h:63
blender::deg::Depsgraph
Definition:
depsgraph.h:43
blender::deg::Node
Definition:
deg_node.h:146
blender::deg::Node::outlinks
Relations outlinks
Definition:
deg_node.h:174
blender::deg::Relation
Definition:
depsgraph_relation.h:34
blender::deg::TimeSourceNode::flush_update_tag
void flush_update_tag(Depsgraph *graph)
Definition:
deg_node_time.cc:22
blender::deg::TimeSourceNode::tag_update
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override
Definition:
deg_node_time.cc:17
blender::deg::TimeSourceNode::tagged_for_update
bool tagged_for_update
Definition:
deg_node_time.h:16
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1