Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/context.c
| Show First 20 Lines • Show All 1,359 Lines • ▼ Show 20 Lines | Depsgraph *CTX_data_depsgraph(const bContext *C) | ||||
| DEG_make_active(depsgraph); | DEG_make_active(depsgraph); | ||||
| return depsgraph; | return depsgraph; | ||||
| } | } | ||||
| Depsgraph *CTX_data_evaluated_depsgraph(const bContext *C) | Depsgraph *CTX_data_evaluated_depsgraph(const bContext *C) | ||||
| { | { | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_depsgraph(C); | ||||
| Main *bmain = CTX_data_main(C); | Main *bmain = CTX_data_main(C); | ||||
| BKE_scene_graph_update_tagged(depsgraph, bmain); | BKE_scene_graph_evaluated_ensure(depsgraph, bmain); | ||||
| return depsgraph; | return depsgraph; | ||||
| } | } | ||||
| Depsgraph *CTX_data_depsgraph_on_load(const bContext *C) | Depsgraph *CTX_data_depsgraph_on_load(const bContext *C) | ||||
| { | { | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| ViewLayer *view_layer = CTX_data_view_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| return BKE_scene_get_depsgraph(scene, view_layer, false); | return BKE_scene_get_depsgraph(scene, view_layer, false); | ||||
| } | } | ||||