From 541f5984660c16985b88afe40c7101d5eec626ba Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 22 Dec 2012 15:10:04 +0000 Subject: [PATCH] Bug - old code, not working for new outliner view: Click on World needed a context check. --- source/blender/editors/space_outliner/outliner_select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index 0b585e1272b..fa337ba7af1 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -336,7 +336,8 @@ static int tree_element_active_world(bContext *C, Scene *scene, SpaceOops *soops tep = te->parent; if (tep) { tselem = TREESTORE(tep); - sce = (Scene *)tselem->id; + if (tselem->type == 0) + sce = (Scene *)tselem->id; } if (set) { // make new scene active