forked from bartvdbraak/blender
Bug - old code, not working for new outliner view: Click on World needed a context check.
This commit is contained in:
parent
7dca6dbf0b
commit
541f598466
@ -336,7 +336,8 @@ static int tree_element_active_world(bContext *C, Scene *scene, SpaceOops *soops
|
|||||||
tep = te->parent;
|
tep = te->parent;
|
||||||
if (tep) {
|
if (tep) {
|
||||||
tselem = TREESTORE(tep);
|
tselem = TREESTORE(tep);
|
||||||
sce = (Scene *)tselem->id;
|
if (tselem->type == 0)
|
||||||
|
sce = (Scene *)tselem->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (set) { // make new scene active
|
if (set) { // make new scene active
|
||||||
|
Loading…
Reference in New Issue
Block a user