diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-08-30 06:06:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-08-30 06:06:03 +0300 |
commit | 8ace389fc4c5d0b5ea789f8a26d7c6ff84703916 (patch) | |
tree | 683fbccf77a4247240fbe1421e6ce90c8cf2fdc4 /source/blender/editors/space_buttons/buttons_context.c | |
parent | a4a9f4b3d1979798506141f7dfcd9f928fe07d1b (diff) |
UI: move workspace panels to tool settings
While this isn't the most logical place, there are very few workspace
options and they don't need to be in such a prominent location.
Diffstat (limited to 'source/blender/editors/space_buttons/buttons_context.c')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_context.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 41aadcc949f..9413978d5e6 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -514,7 +514,7 @@ static int buttons_context_path(const bContext *C, ButsContextPath *path, int ma } /* No pinned root, use scene as initial root. */ else { - if (ELEM(mainb, BCONTEXT_WORKSPACE, BCONTEXT_TOOL)) { + if (mainb == BCONTEXT_TOOL) { RNA_id_pointer_create(&workspace->id, &path->ptr[0]); path->len++; } @@ -551,7 +551,6 @@ static int buttons_context_path(const bContext *C, ButsContextPath *path, int ma found = buttons_context_path_world(path); break; case BCONTEXT_TOOL: - case BCONTEXT_WORKSPACE: found = buttons_context_path_workspace(path); break; case BCONTEXT_OBJECT: |