diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-03-22 19:37:44 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-03-22 19:37:44 +0300 |
commit | 7d4dcfe879953298bb0a2baaec1dbb5ca7886d64 (patch) | |
tree | bd74dc501b331d538eacb93d849e1b787ca8895d /source/blender/editors/space_buttons/space_buttons.c | |
parent | 2c427d594f37d47b469ffac514b6ecd247ad9305 (diff) |
Fix T86822: context.collection not available in Object/Object Data Properties
We need to return the global context collection if it is not found in
the data path.
Also fix pinning of the collection tab.
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index 43d45db38e2..9db8f7efbb2 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -206,7 +206,7 @@ int ED_buttons_tabs_list(SpaceProperties *sbuts, short *context_tabs_array) context_tabs_array[length] = -1; length++; } - if (sbuts->pathflag & (1 << BCONTEXT_VIEW_LAYER)) { + if (sbuts->pathflag & (1 << BCONTEXT_COLLECTION)) { context_tabs_array[length] = BCONTEXT_COLLECTION; length++; } |