From 6d97fdc37eef950bd807670b53f5a399b1233065 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 23 Mar 2021 14:59:30 +0100 Subject: [PATCH] Outliner: Do not crash when drawing unknown view type. Instead default to Viewlayer view. --- source/blender/editors/space_outliner/tree/tree_display.cc | 1 + 1 file changed, 1 insertion(+) 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; }