Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/readfile.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 2,843 Lines • ▼ Show 20 Lines | static void direct_link_workspace(FileData *fd, WorkSpace *workspace, const Main *main) | ||||
| for (wmWindowManager *wm = main->wm.first; wm; wm = wm->id.next) { | for (wmWindowManager *wm = main->wm.first; wm; wm = wm->id.next) { | ||||
| for (wmWindow *win = wm->windows.first; win; win = win->next) { | for (wmWindow *win = wm->windows.first; win; win = win->next) { | ||||
| WorkSpaceLayout *act_layout = newdataadr(fd, BKE_workspace_active_layout_get(win->workspace_hook)); | WorkSpaceLayout *act_layout = newdataadr(fd, BKE_workspace_active_layout_get(win->workspace_hook)); | ||||
| if (act_layout) { | if (act_layout) { | ||||
| BKE_workspace_active_layout_set(win->workspace_hook, act_layout); | BKE_workspace_active_layout_set(win->workspace_hook, act_layout); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| workspace->view_render = newdataadr(fd, workspace->view_render); | |||||
| } | } | ||||
| static void lib_link_workspace_instance_hook(FileData *fd, WorkSpaceInstanceHook *hook, ID *id) | static void lib_link_workspace_instance_hook(FileData *fd, WorkSpaceInstanceHook *hook, ID *id) | ||||
| { | { | ||||
| WorkSpace *workspace = BKE_workspace_active_get(hook); | WorkSpace *workspace = BKE_workspace_active_get(hook); | ||||
| BKE_workspace_active_set(hook, newlibadr(fd, id->lib, workspace)); | BKE_workspace_active_set(hook, newlibadr(fd, id->lib, workspace)); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 3,507 Lines • ▼ Show 20 Lines | static void direct_link_scene(FileData *fd, Scene *sce, Main *bmain) | ||||
| sce->layer_properties = newdataadr(fd, sce->layer_properties); | sce->layer_properties = newdataadr(fd, sce->layer_properties); | ||||
| IDP_DirectLinkGroup_OrFree(&sce->layer_properties, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); | IDP_DirectLinkGroup_OrFree(&sce->layer_properties, (fd->flags & FD_FLAGS_SWITCH_ENDIAN), fd); | ||||
| BKE_layer_collection_engine_settings_validate_scene(sce); | BKE_layer_collection_engine_settings_validate_scene(sce); | ||||
| BKE_scene_layer_engine_settings_validate_scene(sce); | BKE_scene_layer_engine_settings_validate_scene(sce); | ||||
| direct_link_workspace_link_scene_data(fd, sce, &bmain->workspaces); | direct_link_workspace_link_scene_data(fd, sce, &bmain->workspaces); | ||||
| sce->view_render = newdataadr(fd, sce->view_render); | |||||
| } | } | ||||
| /* ************ READ WM ***************** */ | /* ************ READ WM ***************** */ | ||||
| static void direct_link_windowmanager(FileData *fd, wmWindowManager *wm) | static void direct_link_windowmanager(FileData *fd, wmWindowManager *wm) | ||||
| { | { | ||||
| wmWindow *win; | wmWindow *win; | ||||
| ▲ Show 20 Lines • Show All 4,495 Lines • Show Last 20 Lines | |||||