Blender Git Commit Log
Git Commits -> Revision e8c15e0
Revision e8c15e0 by Julian Eisel (master) December 1, 2017, 15:15 (GMT) |
Workspaces: Store an active view-layer per scene Instead of storing a single active view-layer in the workspace, one is stored for each scene the workspace showed before. With this, some things become possible: * Multiple windows in the same workspace but showing different scenes. * Toggling back and forth scene keeps same active view-layer for each scene. * Activating workspace which didn't show current scene before, the current view-layer is kept. A necessary evil for this is that accessing view-layer and object mode from .py can't be done via workspace directly anymore. It has to be done through the window, so RNA can use the correct scene. So instead of `workspace.view_layer`, it's `window.view_layer` now (same with mode) even though it's still workspace data. Fixes T53432. |
Commit Details:
Full Hash: e8c15e0ed15f8369d0d0f706b4953fb64e357902
Parent Commit: 983b1a3
Lines Changed: +204, -124
16 Modified Paths:
/release/scripts/startup/bl_ui/space_info.py (+4, -3) (Diff)
/source/blender/blenkernel/BKE_workspace.h (+23, -5) (Diff)
/source/blender/blenkernel/intern/layer.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/workspace.c (+47, -17) (Diff)
/source/blender/blenloader/intern/readfile.c (+22, -7) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+4, -3) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -1) (Diff)
/source/blender/editors/include/ED_screen.h (+3, -1) (Diff)
/source/blender/editors/object/object_edit.c (+3, -5) (Diff)
/source/blender/editors/object/object_select.c (+1, -2) (Diff)
/source/blender/editors/scene/scene_edit.c (+11, -6) (Diff)
/source/blender/editors/screen/screen_context.c (+1, -1) (Diff)
/source/blender/editors/screen/workspace_edit.c (+21, -16) (Diff)
/source/blender/makesdna/dna_workspace_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+60, -1) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+0, -55) (Diff)
/source/blender/blenkernel/BKE_workspace.h (+23, -5) (Diff)
/source/blender/blenkernel/intern/layer.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/workspace.c (+47, -17) (Diff)
/source/blender/blenloader/intern/readfile.c (+22, -7) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+4, -3) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -1) (Diff)
/source/blender/editors/include/ED_screen.h (+3, -1) (Diff)
/source/blender/editors/object/object_edit.c (+3, -5) (Diff)
/source/blender/editors/object/object_select.c (+1, -2) (Diff)
/source/blender/editors/scene/scene_edit.c (+11, -6) (Diff)
/source/blender/editors/screen/screen_context.c (+1, -1) (Diff)
/source/blender/editors/screen/workspace_edit.c (+21, -16) (Diff)
/source/blender/makesdna/dna_workspace_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+60, -1) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+0, -55) (Diff)