Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_space_api.c
| Show All 34 Lines | static void rna_RegionView3D_update(ID *id, RegionView3D *rv3d, bContext *C) | ||||
| bScreen *sc = (bScreen *)id; | bScreen *sc = (bScreen *)id; | ||||
| ScrArea *sa; | ScrArea *sa; | ||||
| ARegion *ar; | ARegion *ar; | ||||
| area_region_from_regiondata(sc, rv3d, &sa, &ar); | area_region_from_regiondata(sc, rv3d, &sa, &ar); | ||||
| if (sa && ar && sa->spacetype == SPACE_VIEW3D) { | if (sa && ar && sa->spacetype == SPACE_VIEW3D) { | ||||
| Main *bmain = CTX_data_main(C); | |||||
| View3D *v3d = sa->spacedata.first; | View3D *v3d = sa->spacedata.first; | ||||
| wmWindowManager *wm = CTX_wm_manager(C); | wmWindowManager *wm = CTX_wm_manager(C); | ||||
| wmWindow *win; | wmWindow *win; | ||||
| for (win = wm->windows.first; win; win = win->next) { | for (win = wm->windows.first; win; win = win->next) { | ||||
| if (WM_window_get_active_screen(win) == sc) { | if (WM_window_get_active_screen(win) == sc) { | ||||
| Scene *scene = WM_window_get_active_scene(win); | Scene *scene = WM_window_get_active_scene(win); | ||||
| ViewLayer *view_layer = WM_window_get_active_view_layer(win); | ViewLayer *view_layer = WM_window_get_active_view_layer(win); | ||||
| Depsgraph *depsgraph = BKE_scene_get_depsgraph(bmain, scene, view_layer, true); | Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, true); | ||||
| ED_view3d_update_viewmat(depsgraph, scene, v3d, ar, NULL, NULL, NULL, false); | ED_view3d_update_viewmat(depsgraph, scene, v3d, ar, NULL, NULL, NULL, false); | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines | |||||