Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYimingWu <xp8110@outlook.com>2021-06-28 10:46:26 +0300
committerYimingWu <xp8110@outlook.com>2021-06-28 10:51:34 +0300
commitc297769d2249b2fa3c34eb36aee7631ca5278383 (patch)
tree7ebd13bcf2a87717f034cd6eb30988d534a72437 /source/blender/editors/space_buttons/space_buttons.c
parentbb2648ebf0022186bdd27e451194388d1fd4cce0 (diff)
UI: Hide collection tab when scene master collection is active
CollectionLineart does not care about the configurations in master collection. Other options are not applicaple for master collection as well. Hence hiding it. Reviewed by Dalai Felinto (dfelinto) Differential Revision: https://developer.blender.org/D11702
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r--source/blender/editors/space_buttons/space_buttons.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c
index 9db8f7efbb2..57a7fe894b0 100644
--- a/source/blender/editors/space_buttons/space_buttons.c
+++ b/source/blender/editors/space_buttons/space_buttons.c
@@ -202,11 +202,11 @@ int ED_buttons_tabs_list(SpaceProperties *sbuts, short *context_tabs_array)
context_tabs_array[length] = BCONTEXT_WORLD;
length++;
}
- if (length != 0) {
- context_tabs_array[length] = -1;
- length++;
- }
if (sbuts->pathflag & (1 << BCONTEXT_COLLECTION)) {
+ if (length != 0) {
+ context_tabs_array[length] = -1;
+ length++;
+ }
context_tabs_array[length] = BCONTEXT_COLLECTION;
length++;
}