[Bf-blender-cvs] [6d97fdc37ee] master: Outliner: Do not crash when drawing unknown view type.

Bastien Montagne noreply at git.blender.org
Tue Mar 23 15:00:15 CET 2021


Commit: 6d97fdc37eef950bd807670b53f5a399b1233065
Author: Bastien Montagne
Date:   Tue Mar 23 14:59:30 2021 +0100
Branches: master
https://developer.blender.org/rB6d97fdc37eef950bd807670b53f5a399b1233065

Outliner: Do not crash when drawing unknown view type.

Instead default to Viewlayer view.

===================================================================

M	source/blender/editors/space_outliner/tree/tree_display.cc

===================================================================

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



More information about the Bf-blender-cvs mailing list