Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | static void update_defaults_startup_workspaces(Main *bmain) | ||||
| WorkSpace *workspace_default = NULL; | WorkSpace *workspace_default = NULL; | ||||
| for (WorkSpace *workspace = bmain->workspaces.first, *workspace_next; workspace; workspace = workspace_next) { | for (WorkSpace *workspace = bmain->workspaces.first, *workspace_next; workspace; workspace = workspace_next) { | ||||
| workspace_next = workspace->id.next; | workspace_next = workspace->id.next; | ||||
| if (STREQ(workspace->id.name + 2, "Default")) { | if (STREQ(workspace->id.name + 2, "Default")) { | ||||
| /* don't rename within iterator, renaming causes listbase to be re-sorted */ | /* don't rename within iterator, renaming causes listbase to be re-sorted */ | ||||
| workspace_default = workspace; | workspace_default = workspace; | ||||
| BKE_workspace_engine_set(workspace, RE_engine_id_BLENDER_EEVEE); | |||||
| } | } | ||||
| else { | else { | ||||
| BKE_workspace_remove(bmain, workspace); | BKE_workspace_remove(bmain, workspace); | ||||
| } | } | ||||
| } | } | ||||
| /* rename "Default" workspace to "General" */ | /* rename "Default" workspace to "General" */ | ||||
| BKE_libblock_rename(bmain, (ID *)workspace_default, "General"); | BKE_libblock_rename(bmain, (ID *)workspace_default, "General"); | ||||
| ▲ Show 20 Lines • Show All 227 Lines • Show Last 20 Lines | |||||