Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_debug.cc
| Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | bool DEG_debug_compare(const struct Depsgraph *graph1, | ||||
| * problem.. | * problem.. | ||||
| */ | */ | ||||
| return true; | return true; | ||||
| } | } | ||||
| bool DEG_debug_graph_relations_validate(Depsgraph *graph, | bool DEG_debug_graph_relations_validate(Depsgraph *graph, | ||||
| Main *bmain, | Main *bmain, | ||||
| Scene *scene, | Scene *scene, | ||||
| SceneLayer *scene_layer) | ViewLayer *view_layer) | ||||
| { | { | ||||
| Depsgraph *temp_depsgraph = DEG_graph_new(); | Depsgraph *temp_depsgraph = DEG_graph_new(); | ||||
| bool valid = true; | bool valid = true; | ||||
| DEG_graph_build_from_scene_layer(temp_depsgraph, bmain, scene, scene_layer); | DEG_graph_build_from_view_layer(temp_depsgraph, bmain, scene, view_layer); | ||||
| 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(!"This should not happen!"); | ||||
| valid = false; | valid = false; | ||||
| } | } | ||||
| DEG_graph_free(temp_depsgraph); | DEG_graph_free(temp_depsgraph); | ||||
| return valid; | return valid; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines | |||||