Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph.cc
| Show First 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
| TimeSourceNode *Depsgraph::find_time_source() const | TimeSourceNode *Depsgraph::find_time_source() const | ||||
| { | { | ||||
| return time_source; | return time_source; | ||||
| } | } | ||||
| void Depsgraph::tag_time_source() | void Depsgraph::tag_time_source() | ||||
| { | { | ||||
| /* Not all depsgraphs have a valid TimeSourceNode (these only get added in build_view_layer or | |||||
| * build_scene_render, which is not neccessarily the case for inactive scenes). */ | |||||
| TimeSourceNode *time_source = find_time_source(); | |||||
sergey: No need to do so, the `time_source` is available as a member. | |||||
| if (time_source != nullptr) { | |||||
| time_source->tag_update(this, DEG_UPDATE_SOURCE_TIME); | time_source->tag_update(this, DEG_UPDATE_SOURCE_TIME); | ||||
| } | } | ||||
| } | |||||
| IDNode *Depsgraph::find_id_node(const ID *id) const | IDNode *Depsgraph::find_id_node(const ID *id) const | ||||
| { | { | ||||
| return id_hash.lookup_default(id, nullptr); | return id_hash.lookup_default(id, nullptr); | ||||
| } | } | ||||
| IDNode *Depsgraph::add_id_node(ID *id, ID *id_cow_hint) | IDNode *Depsgraph::add_id_node(ID *id, ID *id_cow_hint) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines | |||||
No need to do so, the time_source is available as a member.