Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_debug.cc
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | bool DEG_debug_graph_relations_validate(Depsgraph *graph, | ||||
| Scene *scene, | Scene *scene, | ||||
| ViewLayer *view_layer) | ViewLayer *view_layer) | ||||
| { | { | ||||
| Depsgraph *temp_depsgraph = DEG_graph_new(bmain, scene, view_layer, DEG_get_mode(graph)); | Depsgraph *temp_depsgraph = DEG_graph_new(bmain, scene, view_layer, DEG_get_mode(graph)); | ||||
| bool valid = true; | bool valid = true; | ||||
| DEG_graph_build_from_view_layer(temp_depsgraph); | DEG_graph_build_from_view_layer(temp_depsgraph); | ||||
| if (!DEG_debug_compare(temp_depsgraph, graph)) { | if (!DEG_debug_compare(temp_depsgraph, graph)) { | ||||
| fprintf(stderr, "ERROR! Depsgraph wasn't tagged for update when it should have!\n"); | fprintf(stderr, "ERROR! Depsgraph wasn't tagged for update when it should have!\n"); | ||||
| BLI_assert(!"This should not happen!"); | BLI_assert_msg(0, "This should not happen!"); | ||||
| valid = false; | valid = false; | ||||
| } | } | ||||
| DEG_graph_free(temp_depsgraph); | DEG_graph_free(temp_depsgraph); | ||||
| return valid; | return valid; | ||||
| } | } | ||||
| bool DEG_debug_consistency_check(Depsgraph *graph) | bool DEG_debug_consistency_check(Depsgraph *graph) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 276 Lines • Show Last 20 Lines | |||||