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:
authorBastien Montagne <bastien@blender.org>2021-03-23 16:59:30 +0300
committerBastien Montagne <bastien@blender.org>2021-03-23 16:59:30 +0300
commit6d97fdc37eef950bd807670b53f5a399b1233065 (patch)
treebc8814872ba3063970a1d511d2e019568dcb54c9 /source/blender
parent0fabd045a56b316b1d99f2cb28927a617d09a709 (diff)
Outliner: Do not crash when drawing unknown view type.
Instead default to Viewlayer view.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_outliner/tree/tree_display.cc1
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;
}