diff options
author | Harley Acheson <harley> | 2019-04-11 13:57:02 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-04-11 13:58:27 +0300 |
commit | c642474704db6a33120da2e8cfa34d502046cf98 (patch) | |
tree | d04e2039746d5435bf24931b80c5320186aa252f /source/blender/editors/space_outliner | |
parent | 4bad4bfc6ae5a81c44038cb1259f44befbb3afe0 (diff) |
Fix T63451: selected objects not highlighted in outliner scene view.
Differential Revision: https://developer.blender.org/D4668
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |