[Bf-blender-cvs] [15317775c5e] blender2.8: Outliner: Bring back "activate" object when selecting from outliner
Dalai Felinto
noreply at git.blender.org
Tue May 16 16:40:37 CEST 2017
Commit: 15317775c5e8fc082797424aaa80773eb3a24428
Author: Dalai Felinto
Date: Tue May 16 16:40:00 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB15317775c5e8fc082797424aaa80773eb3a24428
Outliner: Bring back "activate" object when selecting from outliner
===================================================================
M source/blender/editors/space_outliner/outliner_select.c
===================================================================
diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c
index 157467b1aaf..e61ded299d1 100644
--- a/source/blender/editors/space_outliner/outliner_select.c
+++ b/source/blender/editors/space_outliner/outliner_select.c
@@ -165,7 +165,11 @@ static eOLDrawState tree_element_set_active_object(
}
/* find associated base in current scene */
- base = BKE_scene_base_find(scene, ob);
+ if (te->directdata) {
+ base = te->directdata;
+ } else {
+ base = BKE_scene_layer_base_find(sl, ob);
+ }
if (base) {
if (set == OL_SETSEL_EXTEND) {
More information about the Bf-blender-cvs
mailing list