Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/builder/deg_builder.cc
| Show All 40 Lines | |||||
| #include "BKE_animsys.h" | #include "BKE_animsys.h" | ||||
| } | } | ||||
| #include "intern/depsgraph.h" | #include "intern/depsgraph.h" | ||||
| #include "intern/depsgraph_relation.h" | #include "intern/depsgraph_relation.h" | ||||
| #include "intern/depsgraph_tag.h" | #include "intern/depsgraph_tag.h" | ||||
| #include "intern/depsgraph_type.h" | #include "intern/depsgraph_type.h" | ||||
| #include "intern/builder/deg_builder_cache.h" | #include "intern/builder/deg_builder_cache.h" | ||||
| #include "intern/builder/deg_builder_remove_noop.h" | |||||
| #include "intern/eval/deg_eval_copy_on_write.h" | #include "intern/eval/deg_eval_copy_on_write.h" | ||||
| #include "intern/node/deg_node.h" | #include "intern/node/deg_node.h" | ||||
| #include "intern/node/deg_node_id.h" | #include "intern/node/deg_node_id.h" | ||||
| #include "intern/node/deg_node_component.h" | #include "intern/node/deg_node_component.h" | ||||
| #include "intern/node/deg_node_operation.h" | #include "intern/node/deg_node_operation.h" | ||||
| #include "DEG_depsgraph.h" | #include "DEG_depsgraph.h" | ||||
| ▲ Show 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| } // namespace | } // namespace | ||||
| void deg_graph_build_finalize(Main *bmain, Depsgraph *graph) | void deg_graph_build_finalize(Main *bmain, Depsgraph *graph) | ||||
| { | { | ||||
| /* Make sure dependencies of visible ID datablocks are visible. */ | /* Make sure dependencies of visible ID datablocks are visible. */ | ||||
| deg_graph_build_flush_visibility(graph); | deg_graph_build_flush_visibility(graph); | ||||
| deg_graph_remove_unused_noops(graph); | |||||
| /* Re-tag IDs for update if it was tagged before the relations | /* Re-tag IDs for update if it was tagged before the relations | ||||
| * update tag. */ | * update tag. */ | ||||
| for (IDNode *id_node : graph->id_nodes) { | for (IDNode *id_node : graph->id_nodes) { | ||||
| ID *id_orig = id_node->id_orig; | ID *id_orig = id_node->id_orig; | ||||
| id_node->finalize_build(graph); | id_node->finalize_build(graph); | ||||
| int flag = 0; | int flag = 0; | ||||
| /* Tag rebuild if special evaluation flags changed. */ | /* Tag rebuild if special evaluation flags changed. */ | ||||
| if (id_node->eval_flags != id_node->previous_eval_flags) { | if (id_node->eval_flags != id_node->previous_eval_flags) { | ||||
| Show All 24 Lines | |||||