[Bf-blender-cvs] [c642474704d] master: Fix T63451: selected objects not highlighted in outliner scene view.

Harley Acheson noreply at git.blender.org
Thu Apr 11 12:58:58 CEST 2019


Commit: c642474704db6a33120da2e8cfa34d502046cf98
Author: Harley Acheson
Date:   Thu Apr 11 12:57:02 2019 +0200
Branches: master
https://developer.blender.org/rBc642474704db6a33120da2e8cfa34d502046cf98

Fix T63451: selected objects not highlighted in outliner scene view.

Differential Revision: https://developer.blender.org/D4668

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

M	source/blender/editors/space_outliner/outliner_draw.c

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

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) {



More information about the Bf-blender-cvs mailing list