Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/BLO_readfile.h
| Show First 20 Lines • Show All 159 Lines • ▼ Show 20 Lines | |||||
| typedef void (*BLOExpandDoitCallback)(void *fdhandle, struct Main *mainvar, void *idv); | typedef void (*BLOExpandDoitCallback)(void *fdhandle, struct Main *mainvar, void *idv); | ||||
| void BLO_main_expander(BLOExpandDoitCallback expand_doit_func); | void BLO_main_expander(BLOExpandDoitCallback expand_doit_func); | ||||
| void BLO_expand_main(void *fdhandle, struct Main *mainvar); | void BLO_expand_main(void *fdhandle, struct Main *mainvar); | ||||
| /* Update defaults in startup.blend & userprefs.blend, without having to save and embed it */ | /* Update defaults in startup.blend & userprefs.blend, without having to save and embed it */ | ||||
| void BLO_update_defaults_startup_blend(struct Main *mainvar, const char *app_template); | void BLO_update_defaults_startup_blend(struct Main *mainvar, const char *app_template); | ||||
| void BLO_update_defaults_workspace(struct WorkSpace *workspace, const char *app_template); | void BLO_update_defaults_workspace(struct WorkSpace *workspace, | ||||
| const char *app_template, | |||||
| struct Main *mainvar); | |||||
brecht: The function here is to update the workspace only and should not affect meshes through… | |||||
| /* Version patch user preferences. */ | /* Version patch user preferences. */ | ||||
| void BLO_version_defaults_userpref_blend(struct Main *mainvar, struct UserDef *userdef); | void BLO_version_defaults_userpref_blend(struct Main *mainvar, struct UserDef *userdef); | ||||
| struct BlendThumbnail *BLO_thumbnail_from_file(const char *filepath); | struct BlendThumbnail *BLO_thumbnail_from_file(const char *filepath); | ||||
| /* datafiles (generated theme) */ | /* datafiles (generated theme) */ | ||||
| extern const struct bTheme U_theme_default; | extern const struct bTheme U_theme_default; | ||||
| extern const struct UserDef U_default; | extern const struct UserDef U_default; | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif | #endif | ||||
| #endif /* __BLO_READFILE_H__ */ | #endif /* __BLO_READFILE_H__ */ | ||||
The function here is to update the workspace only and should not affect meshes through mainvar.
Remove that parameter again, and instead do it in BLO_update_defaults_startup_blend with if (app_template && STREQ(app_template, "Sculpting")) {.