Blender Git Commit Log
Git Commits -> Revision a2baf50
Revision a2baf50 by Julian Eisel (master) May 26, 2020, 18:32 (GMT) |
Cleanup/refactor: Workspace API, boilerplate code, early exit * Simplify workspace API a bit * Comment on behavior of workspace-layout relations where exposed in API * Remove annoying getters/setters * Avoid lookups if we can early exit * A NULL check is removed in `direct_link_workspace()` that I don't see a need for. Am not 100% sure though, fingers crossed. In general these changes should improve readability and make things easier to reason about. |
Commit Details:
Full Hash: a2baf50242a315961fc7bc4d202a610442e813ec
Parent Commit: 1f223b9
Lines Changed: +65, -79
11 Modified Paths:
/source/blender/blenkernel/BKE_workspace.h (+2, -8) (Diff)
/source/blender/blenkernel/intern/workspace.c (+43, -35) (Diff)
/source/blender/blenloader/intern/readfile.c (+5, -17) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+4, -5) (Diff)
/source/blender/blenloader/intern/writefile.c (+1, -3) (Diff)
/source/blender/editors/screen/workspace_edit.c (+4, -5) (Diff)
/source/blender/editors/screen/workspace_layout_edit.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/workspace.c (+43, -35) (Diff)
/source/blender/blenloader/intern/readfile.c (+5, -17) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_defaults.c (+4, -5) (Diff)
/source/blender/blenloader/intern/writefile.c (+1, -3) (Diff)
/source/blender/editors/screen/workspace_edit.c (+4, -5) (Diff)
/source/blender/editors/screen/workspace_layout_edit.c (+1, -1) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm.c (+1, -1) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+2, -2) (Diff)