Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/node/deg_node_time.cc
| Show All 25 Lines | |||||
| #include "DNA_scene_types.h" | #include "DNA_scene_types.h" | ||||
| #include "intern/depsgraph.h" | #include "intern/depsgraph.h" | ||||
| #include "intern/depsgraph_relation.h" | #include "intern/depsgraph_relation.h" | ||||
| namespace blender { | namespace blender { | ||||
| namespace deg { | namespace deg { | ||||
| void TimeSourceNode::tag_update(Depsgraph *graph, eUpdateSource /*source*/) | void TimeSourceNode::tag_update(Depsgraph * /*graph*/, eUpdateSource /*source*/) | ||||
| { | { | ||||
| tagged_for_update = true; | |||||
| } | |||||
| void TimeSourceNode::flush_update_tag(Depsgraph *graph) | |||||
| { | |||||
| if (!tagged_for_update) { | |||||
| return; | |||||
| } | |||||
| for (Relation *rel : outlinks) { | for (Relation *rel : outlinks) { | ||||
| Node *node = rel->to; | Node *node = rel->to; | ||||
| node->tag_update(graph, DEG_UPDATE_SOURCE_TIME); | node->tag_update(graph, DEG_UPDATE_SOURCE_TIME); | ||||
| } | } | ||||
| } | } | ||||
| } // namespace deg | } // namespace deg | ||||
| } // namespace blender | } // namespace blender | ||||