Outliner: Do not crash when drawing unknown view type.

Instead default to Viewlayer view.
This commit is contained in:
Bastien Montagne 2021-03-23 14:59:30 +01:00
parent 0fabd045a5
commit 6d97fdc37e
Notes: blender-bot 2023-02-13 11:52:04 +01:00
Referenced by commit 17301a3163, Fix incorrect Outliner tree-display type returned
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}