diff options
author | Bastien Montagne <bastien@blender.org> | 2021-03-23 16:59:30 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-03-23 16:59:30 +0300 |
commit | 6d97fdc37eef950bd807670b53f5a399b1233065 (patch) | |
tree | bc8814872ba3063970a1d511d2e019568dcb54c9 /source/blender/editors | |
parent | 0fabd045a56b316b1d99f2cb28927a617d09a709 (diff) |
Outliner: Do not crash when drawing unknown view type.
Instead default to Viewlayer view.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_outliner/tree/tree_display.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/tree/tree_display.cc b/source/blender/editors/space_outliner/tree/tree_display.cc index 6632c057814..4395383e838 100644 --- a/source/blender/editors/space_outliner/tree/tree_display.cc +++ b/source/blender/editors/space_outliner/tree/tree_display.cc @@ -45,6 +45,7 @@ TreeDisplay *outliner_tree_display_create(eSpaceOutliner_Mode mode, SpaceOutline tree_display = new TreeDisplayIDOrphans(*space_outliner); break; case SO_VIEW_LAYER: + default: tree_display = new TreeDisplayViewLayer(*space_outliner); break; } |