Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_tag.cc
| Show First 20 Lines • Show All 609 Lines • ▼ Show 20 Lines | 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); | ||||
| } | } | ||||
| } | } | ||||
| 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 != NULL) ? DEG_debug_flags_get((::Depsgraph *)graph) : G.debug; | const int debug_flags = (graph != NULL) ? DEG_debug_flags_get((::Depsgraph *)graph) : G.debug; | ||||
| if (graph != NULL && graph->is_evaluating) { | |||||
| if (debug_flags & G_DEBUG_DEPSGRAPH) { | |||||
| printf("ID tagged for update during dependency graph evaluation."); | |||||
brecht: Coul add `, ignored` at the end. | |||||
| } | |||||
| return; | |||||
| } | |||||
| if (debug_flags & G_DEBUG_DEPSGRAPH_TAG) { | if (debug_flags & G_DEBUG_DEPSGRAPH_TAG) { | ||||
| printf("%s: id=%s flags=%s source=%s\n", | printf("%s: id=%s flags=%s source=%s\n", | ||||
| __func__, | __func__, | ||||
| id->name, | id->name, | ||||
| stringify_update_bitfield(flag).c_str(), | stringify_update_bitfield(flag).c_str(), | ||||
| update_source_as_string(update_source)); | update_source_as_string(update_source)); | ||||
| } | } | ||||
| IDNode *id_node = (graph != NULL) ? graph->find_id_node(id) : NULL; | IDNode *id_node = (graph != NULL) ? graph->find_id_node(id) : NULL; | ||||
| ▲ Show 20 Lines • Show All 207 Lines • Show Last 20 Lines | |||||
Coul add , ignored at the end.