From c642474704db6a33120da2e8cfa34d502046cf98 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Thu, 11 Apr 2019 12:57:02 +0200 Subject: Fix T63451: selected objects not highlighted in outliner scene view. Differential Revision: https://developer.blender.org/D4668 --- source/blender/editors/space_outliner/outliner_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 99d4c587401..ff0b9d8a55f 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1748,7 +1748,7 @@ static void outliner_draw_tree_element( } else if (te->idcode == ID_OB) { Object *ob = (Object *)tselem->id; - Base *base = (Base *)te->directdata; + Base *base = BKE_view_layer_base_find(view_layer, ob); const bool is_selected = (base != NULL) && ((base->flag & BASE_SELECTED) != 0); if (ob == obact || is_selected) { -- cgit v1.2.3