Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 1,347 Lines • ▼ Show 20 Lines | if (newwin == NULL) { | ||||
| BKE_report(op->reports, RPT_ERROR, "Failed to open window!"); | BKE_report(op->reports, RPT_ERROR, "Failed to open window!"); | ||||
| goto finally; | goto finally; | ||||
| } | } | ||||
| *newwin->stereo3d_format = *win->stereo3d_format; | *newwin->stereo3d_format = *win->stereo3d_format; | ||||
| newwin->scene = scene; | newwin->scene = scene; | ||||
| STRNCPY(newwin->view_layer_name, win->view_layer_name); | |||||
| BKE_workspace_active_set(newwin->workspace_hook, workspace); | BKE_workspace_active_set(newwin->workspace_hook, workspace); | ||||
| /* allocs new screen and adds to newly created window, using window size */ | /* allocs new screen and adds to newly created window, using window size */ | ||||
| layout_new = ED_workspace_layout_add( | layout_new = ED_workspace_layout_add( | ||||
| bmain, workspace, newwin, BKE_workspace_layout_name_get(layout_old)); | bmain, workspace, newwin, BKE_workspace_layout_name_get(layout_old)); | ||||
| newsc = BKE_workspace_layout_screen_get(layout_new); | newsc = BKE_workspace_layout_screen_get(layout_new); | ||||
| WM_window_set_active_layout(newwin, workspace, layout_new); | WM_window_set_active_layout(newwin, workspace, layout_new); | ||||
| /* copy area to new screen */ | /* copy area to new screen */ | ||||
| ▲ Show 20 Lines • Show All 4,187 Lines • Show Last 20 Lines | |||||