Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_tag.cc
| Show First 20 Lines • Show All 259 Lines • ▼ Show 20 Lines | void depsgraph_update_editors_tag(Main *bmain, Depsgraph *graph, ID *id) | ||||
| update_ctx.scene = graph->scene; | update_ctx.scene = graph->scene; | ||||
| update_ctx.view_layer = graph->view_layer; | update_ctx.view_layer = graph->view_layer; | ||||
| deg_editors_id_update(&update_ctx, id); | deg_editors_id_update(&update_ctx, id); | ||||
| } | } | ||||
| void depsgraph_id_tag_copy_on_write(Depsgraph *graph, IDNode *id_node, eUpdateSource update_source) | void depsgraph_id_tag_copy_on_write(Depsgraph *graph, IDNode *id_node, eUpdateSource update_source) | ||||
| { | { | ||||
| ComponentNode *cow_comp = id_node->find_component(NodeType::COPY_ON_WRITE); | ComponentNode *cow_comp = id_node->find_component(NodeType::COPY_ON_WRITE); | ||||
| if (cow_comp == nullptr) { | |||||
| BLI_assert(!deg_copy_on_write_is_needed(GS(id_node->id_orig->name))); | |||||
| return; | |||||
| } | |||||
| cow_comp->tag_update(graph, update_source); | cow_comp->tag_update(graph, update_source); | ||||
| } | } | ||||
| void depsgraph_tag_component(Depsgraph *graph, | void depsgraph_tag_component(Depsgraph *graph, | ||||
| IDNode *id_node, | IDNode *id_node, | ||||
| NodeType component_type, | NodeType component_type, | ||||
| OperationCode operation_code, | OperationCode operation_code, | ||||
| eUpdateSource update_source) | eUpdateSource update_source) | ||||
| ▲ Show 20 Lines • Show All 586 Lines • Show Last 20 Lines | |||||