Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_tag.cc
| Show First 20 Lines • Show All 619 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| graph_id_tag_update(bmain, nullptr, id, flag, update_source); | graph_id_tag_update(bmain, nullptr, id, flag, update_source); | ||||
| for (DEG::Depsgraph *depsgraph : DEG::get_all_registered_graphs(bmain)) { | for (DEG::Depsgraph *depsgraph : DEG::get_all_registered_graphs(bmain)) { | ||||
| graph_id_tag_update(bmain, depsgraph, id, flag, update_source); | graph_id_tag_update(bmain, depsgraph, id, flag, update_source); | ||||
| } | } | ||||
| /* Accumulate all tags for an ID between two undo steps, so they can be | /* Accumulate all tags for an ID between two undo steps, so they can be | ||||
| * replayed for undo. */ | * replayed for undo. */ | ||||
| id->recalc_undo_accumulated |= deg_recalc_flags_effective(NULL, flag); | id->recalc_after_undo_push |= deg_recalc_flags_effective(NULL, flag); | ||||
| } | } | ||||
| void graph_id_tag_update( | void graph_id_tag_update( | ||||
| Main *bmain, Depsgraph *graph, ID *id, int flag, eUpdateSource update_source) | Main *bmain, Depsgraph *graph, ID *id, int flag, eUpdateSource update_source) | ||||
| { | { | ||||
| const int debug_flags = (graph != nullptr) ? DEG_debug_flags_get((::Depsgraph *)graph) : G.debug; | const int debug_flags = (graph != nullptr) ? DEG_debug_flags_get((::Depsgraph *)graph) : G.debug; | ||||
| if (graph != nullptr && graph->is_evaluating) { | if (graph != nullptr && graph->is_evaluating) { | ||||
| if (debug_flags & G_DEBUG_DEPSGRAPH) { | if (debug_flags & G_DEBUG_DEPSGRAPH) { | ||||
| ▲ Show 20 Lines • Show All 220 Lines • Show Last 20 Lines | |||||