From aef4910eaf9423f4322d27aa1099ab2ffb2bffeb Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Sat, 22 Dec 2012 17:32:56 +0000 Subject: New Outliner "Blender File" option: the first entry couldn't be closed/re-opened. --- source/blender/editors/space_outliner/outliner_tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_outliner/outliner_tree.c') diff --git a/source/blender/editors/space_outliner/outliner_tree.c b/source/blender/editors/space_outliner/outliner_tree.c index 1cfb85afdae..ddbc49bf995 100644 --- a/source/blender/editors/space_outliner/outliner_tree.c +++ b/source/blender/editors/space_outliner/outliner_tree.c @@ -1492,8 +1492,8 @@ void outliner_build_tree(Main *mainvar, Scene *scene, SpaceOops *soops) if (soops->outlinevis == SO_LIBRARIES) { Library *lib; - /* current file first */ - ten = outliner_add_element(soops, &soops->tree, NULL, NULL, TSE_ID_BASE, 0); + /* current file first - mainvar provides tselem with unique pointer - not used */ + ten = outliner_add_element(soops, &soops->tree, mainvar, NULL, TSE_ID_BASE, 0); ten->name = "Current File"; tselem = TREESTORE(ten); @@ -1511,6 +1511,7 @@ void outliner_build_tree(Main *mainvar, Scene *scene, SpaceOops *soops) } /* make hierarchy */ ten = soops->tree.first; + ten= ten->next; /* first one is main */ while (ten) { TreeElement *nten = ten->next, *par; tselem = TREESTORE(ten); -- cgit v1.2.3