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:
authorHarley Acheson <harley>2019-04-11 13:57:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-04-11 13:58:27 +0300
commitc642474704db6a33120da2e8cfa34d502046cf98 (patch)
treed04e2039746d5435bf24931b80c5320186aa252f
parent4bad4bfc6ae5a81c44038cb1259f44befbb3afe0 (diff)
Fix T63451: selected objects not highlighted in outliner scene view.
Differential Revision: https://developer.blender.org/D4668
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c2
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) {