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,887 Lines • ▼ Show 20 Lines | for (WorkSpaceDataRelation *relation = workspace->hook_layout_relations.first; | ||||
| relation->parent = newglobadr(fd, relation->parent); /* data from window - need to access through global oldnew-map */ | relation->parent = newglobadr(fd, relation->parent); /* data from window - need to access through global oldnew-map */ | ||||
| relation->value = newdataadr(fd, relation->value); | relation->value = newdataadr(fd, relation->value); | ||||
| } | } | ||||
| if (ID_IS_LINKED(&workspace->id)) { | if (ID_IS_LINKED(&workspace->id)) { | ||||
| /* Appending workspace so render layer is likely from a different scene. Unset | /* Appending workspace so render layer is likely from a different scene. Unset | ||||
| * now, when activating workspace later we set a valid one from current scene. */ | * now, when activating workspace later we set a valid one from current scene. */ | ||||
| BKE_workspace_relations_free(&workspace->scene_viewlayer_relations); | BKE_workspace_relations_free(&workspace->scene_viewlayer_relations); | ||||
| workspace->view_layer = NULL; | |||||
| } | } | ||||
| /* Same issue/fix as in direct_link_workspace_link_scene_data: Can't read workspace data | /* Same issue/fix as in direct_link_workspace_link_scene_data: Can't read workspace data | ||||
| * when reading windows, so have to update windows after/when reading workspaces. */ | * when reading windows, so have to update windows after/when reading workspaces. */ | ||||
| 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) { | ||||
| ▲ Show 20 Lines • Show All 8,100 Lines • Show Last 20 Lines | |||||