Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_defaults.c
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_node.h" | #include "BKE_node.h" | ||||
| #include "BKE_node_tree_update.h" | #include "BKE_node_tree_update.h" | ||||
| #include "BKE_paint.h" | #include "BKE_paint.h" | ||||
| #include "BKE_screen.h" | #include "BKE_screen.h" | ||||
| #include "BKE_workspace.h" | #include "BKE_workspace.h" | ||||
| #include "BLO_readfile.h" | #include "BLO_readfile.h" | ||||
| #include "BLT_translation.h" | |||||
| #include "versioning_common.h" | #include "versioning_common.h" | ||||
| /* Make preferences read-only, use versioning_userdef.c. */ | /* Make preferences read-only, use versioning_userdef.c. */ | ||||
| #define U (*((const UserDef *)&U)) | #define U (*((const UserDef *)&U)) | ||||
| static bool blo_is_builtin_template(const char *app_template) | static bool blo_is_builtin_template(const char *app_template) | ||||
| { | { | ||||
| /* For all builtin templates shipped with Blender. */ | /* For all builtin templates shipped with Blender. */ | ||||
| return (!app_template || | return (!app_template || | ||||
| STR_ELEM(app_template, "2D_Animation", "Sculpting", "VFX", "Video_Editing")); | STR_ELEM(app_template, N_("2D_Animation"), N_("Sculpting"), N_("VFX"), N_("Video_Editing"))); | ||||
| } | } | ||||
| static void blo_update_defaults_screen(bScreen *screen, | static void blo_update_defaults_screen(bScreen *screen, | ||||
| const char *app_template, | const char *app_template, | ||||
| const char *workspace_name) | const char *workspace_name) | ||||
| { | { | ||||
| /* For all app templates. */ | /* For all app templates. */ | ||||
| LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | LISTBASE_FOREACH (ScrArea *, area, &screen->areabase) { | ||||
| ▲ Show 20 Lines • Show All 680 Lines • Show Last 20 Lines | |||||