Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_tag.cc
| Show First 20 Lines • Show All 346 Lines • ▼ Show 20 Lines | void deg_graph_id_tag_update(Main *bmain, Depsgraph *graph, ID *id, int flag) | ||||
| } | } | ||||
| id_tag_update_ntree_special(bmain, graph, id, flag); | id_tag_update_ntree_special(bmain, graph, id, flag); | ||||
| } | } | ||||
| void deg_id_tag_update(Main *bmain, ID *id, int flag) | void deg_id_tag_update(Main *bmain, ID *id, int flag) | ||||
| { | { | ||||
| lib_id_recalc_tag_flag(bmain, id, flag); | lib_id_recalc_tag_flag(bmain, id, flag); | ||||
| LINKLIST_FOREACH(Scene *, scene, &bmain->scene) { | LINKLIST_FOREACH(Scene *, scene, &bmain->scene) { | ||||
| LINKLIST_FOREACH(SceneLayer *, scene_layer, &scene->render_layers) { | LINKLIST_FOREACH(ViewLayer *, view_layer, &scene->view_layers) { | ||||
| Depsgraph *depsgraph = | Depsgraph *depsgraph = | ||||
| (Depsgraph *)BKE_scene_get_depsgraph(scene, | (Depsgraph *)BKE_scene_get_depsgraph(scene, | ||||
| scene_layer, | view_layer, | ||||
| false); | false); | ||||
| if (depsgraph != NULL) { | if (depsgraph != NULL) { | ||||
| deg_graph_id_tag_update(bmain, depsgraph, id, flag); | deg_graph_id_tag_update(bmain, depsgraph, id, flag); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| DEG::Depsgraph *graph = (DEG::Depsgraph *)depsgraph; | DEG::Depsgraph *graph = (DEG::Depsgraph *)depsgraph; | ||||
| DEG::deg_graph_on_visible_update(bmain, graph); | DEG::deg_graph_on_visible_update(bmain, graph); | ||||
| } | } | ||||
| void DEG_on_visible_update(Main *bmain, const bool UNUSED(do_time)) | void DEG_on_visible_update(Main *bmain, const bool UNUSED(do_time)) | ||||
| { | { | ||||
| LINKLIST_FOREACH(Scene *, scene, &bmain->scene) { | LINKLIST_FOREACH(Scene *, scene, &bmain->scene) { | ||||
| LINKLIST_FOREACH(SceneLayer *, scene_layer, &scene->render_layers) { | LINKLIST_FOREACH(ViewLayer *, view_layer, &scene->view_layers) { | ||||
| Depsgraph *depsgraph = | Depsgraph *depsgraph = | ||||
| (Depsgraph *)BKE_scene_get_depsgraph(scene, | (Depsgraph *)BKE_scene_get_depsgraph(scene, | ||||
| scene_layer, | view_layer, | ||||
| false); | false); | ||||
| if (depsgraph != NULL) { | if (depsgraph != NULL) { | ||||
| DEG_graph_on_visible_update(bmain, depsgraph); | DEG_graph_on_visible_update(bmain, depsgraph); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines | |||||