Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/scene/scene_edit.c
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
| /* Depsgraph updates after scene becomes active in a window. */ | /* Depsgraph updates after scene becomes active in a window. */ | ||||
| void ED_scene_change_update(Main *bmain, Scene *scene, ViewLayer *layer) | void ED_scene_change_update(Main *bmain, Scene *scene, ViewLayer *layer) | ||||
| { | { | ||||
| Depsgraph *depsgraph = BKE_scene_ensure_depsgraph(bmain, scene, layer); | Depsgraph *depsgraph = BKE_scene_ensure_depsgraph(bmain, scene, layer); | ||||
| BKE_scene_set_background(bmain, scene); | BKE_scene_set_background(bmain, scene); | ||||
| DEG_graph_relations_update(depsgraph); | DEG_graph_relations_update(depsgraph); | ||||
| DEG_on_visible_update(bmain, false); | DEG_tag_on_visible_update(bmain, false); | ||||
| ED_render_engine_changed(bmain, false); | ED_render_engine_changed(bmain, false); | ||||
| ED_update_for_newframe(bmain, depsgraph); | ED_update_for_newframe(bmain, depsgraph); | ||||
| } | } | ||||
| static bool view_layer_remove_poll(const Scene *scene, const ViewLayer *layer) | static bool view_layer_remove_poll(const Scene *scene, const ViewLayer *layer) | ||||
| { | { | ||||
| const int act = BLI_findindex(&scene->view_layers, layer); | const int act = BLI_findindex(&scene->view_layers, layer); | ||||
| ▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines | |||||