diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-22 19:10:04 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-22 19:10:04 +0400 |
commit | 541f5984660c16985b88afe40c7101d5eec626ba (patch) | |
tree | 1abf1f708d2df357938f95c036009b395179a2fa /source/blender/editors/space_outliner/outliner_select.c | |
parent | 7dca6dbf0bf7606a76f87079ba6e7d1a7cc99f47 (diff) |
Bug - old code, not working for new outliner view: Click on World needed a context check.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_select.c')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_select.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |