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:
authorNathan Craddock <nzcraddock@gmail.com>2020-07-30 04:45:00 +0300
committerNathan Craddock <nzcraddock@gmail.com>2020-07-30 04:45:00 +0300
commitec57e6c79075449beb8a38419fe9d0f149853a34 (patch)
treeb5142919052bd79f3556aa733760606dc3b9d234 /source/blender/editors/space_outliner/outliner_draw.c
parent5290d7e79fd0889d6ce231d62424bde5f88d6a56 (diff)
Outliner: Fix crash opening scenes view
The collection enable box should only show in scenes view.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index 6d83b0df2a0..6b68f1c3a4b 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -1046,7 +1046,7 @@ static void outliner_draw_restrictbuts(uiBlock *block,
if (soops->show_restrict_flags & SO_RESTRICT_SELECT) {
restrict_offsets.select = (++restrict_column_offset) * UI_UNIT_X + V2D_SCROLL_WIDTH;
}
- if (soops->show_restrict_flags & SO_RESTRICT_ENABLE) {
+ if (soops->outlinevis == SO_VIEW_LAYER && soops->show_restrict_flags & SO_RESTRICT_ENABLE) {
restrict_offsets.enable = (++restrict_column_offset) * UI_UNIT_X + V2D_SCROLL_WIDTH;
}