Blender Git Loki
Git Commits -> Revision 84f21c1
Revision 84f21c1 by Brecht Van Lommel (master) September 18, 2018, 17:38 (GMT) |
Application Templates: make templates more prominent in the UI. The goal here is to make app templates usable for default templates that we can ship with Blender. These only have a custom startup.blend currently and so are quite limited compared to app templates that fully customize Blender. But still it seems like the same kind of concept where we should be sharing the code and UI. It is useful to be able to save a startup.blend per template, and I can imagine some scripting being useful in the future as well. Changes made: * File > New and Ctrl+N now list the templates, replacing a separate Application Templates menu that was not as easy to discover. * File menu now shows name of active template above Save Startup File and Load Factory Settings to indicate these are saved/loaded per template. * The "Default" template was renamed to "General". * Workspaces can now be added from any of the template startup.blend files when clicking the (+) button in the topbar. * User preferences are now fully shared between app templates, unless the template includes a custom userpref.blend. I think this will be useful in general, not all app templates need their own keymaps for example. * Previously Save User Preferences would save the current app template and then Blender would start using that template by default. I've disabled this, to me it seems it was unintentional, or at least not clear at all that saving user preferences also makes the current Differential Revision: https://developer.blender.org/D3690 |
Commit Details:
Full Hash: 84f21c170dda9e503de440c20bc2753002987901
Parent Commit: b08d9f0
Lines Changed: +263, -123
12 Modified Paths:
/release/scripts/startup/bl_ui/space_topbar.py (+66, -5) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+1, -50) (Diff)
/source/blender/blenkernel/BKE_appdir.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/appdir.c (+29, -1) (Diff)
/source/blender/blenlib/BLI_path_util.h (+2, -0) (Diff)
/source/blender/blenlib/intern/path_util.c (+42, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+3, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+5, -5) (Diff)
/source/blender/editors/screen/workspace_edit.c (+69, -52) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+0, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+43, -8) (Diff)
/release/scripts/startup/bl_ui/space_userpref.py (+1, -50) (Diff)
/source/blender/blenkernel/BKE_appdir.h (+2, -0) (Diff)
/source/blender/blenkernel/intern/appdir.c (+29, -1) (Diff)
/source/blender/blenlib/BLI_path_util.h (+2, -0) (Diff)
/source/blender/blenlib/intern/path_util.c (+42, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+3, -0) (Diff)
/source/blender/editors/include/UI_interface.h (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+5, -5) (Diff)
/source/blender/editors/screen/workspace_edit.c (+69, -52) (Diff)
/source/blender/makesrna/intern/rna_ui_api.c (+0, -1) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+43, -8) (Diff)