diff options
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: |