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:
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_select.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_select.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index dd89a36fe9c..0707f728ff7 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -760,6 +760,11 @@ static eOLDrawState tree_element_active_collection(
if (set == OL_SETSEL_NONE) {
LayerCollection *active = CTX_data_layer_collection(C);
+ /* sometimes the renderlayer has no LayerCollection at all */
+ if (active == NULL) {
+ return OL_DRAWSEL_NONE;
+ }
+
if ((tselem->type == TSE_SCENE_COLLECTION && active->scene_collection == te->directdata) ||
(tselem->type == TSE_LAYER_COLLECTION && active == te->directdata))
{