Bug - old code, not working for new outliner view: Click on World needed a context check.

This commit is contained in:
Ton Roosendaal 2012-12-22 15:10:04 +00:00
parent 7dca6dbf0b
commit 541f598466

@ -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