Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_window.c
| Show First 20 Lines • Show All 1,932 Lines • ▼ Show 20 Lines | for (wmWindow *win = wm->windows.first; win; win = win->next) { | ||||
| if (WM_window_get_active_screen(win) == screen) { | if (WM_window_get_active_screen(win) == screen) { | ||||
| return WM_window_get_active_scene(win); | return WM_window_get_active_scene(win); | ||||
| } | } | ||||
| } | } | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| WorkSpace *WM_windows_workspace_get_from_screen(const wmWindowManager *wm, const bScreen *screen) | |||||
| { | |||||
| for (wmWindow *win = wm->windows.first; win; win = win->next) { | |||||
| if (WM_window_get_active_screen(win) == screen) { | |||||
| return WM_window_get_active_workspace(win); | |||||
| } | |||||
| } | |||||
| return NULL; | |||||
| } | |||||
| Scene *WM_window_get_active_scene(const wmWindow *win) | Scene *WM_window_get_active_scene(const wmWindow *win) | ||||
| { | { | ||||
| return win->scene; | return win->scene; | ||||
| } | } | ||||
| /** | /** | ||||
| * \warning Only call outside of area/region loops | * \warning Only call outside of area/region loops | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||