[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53277] trunk/blender/source/blender/ editors/space_outliner/outliner_tree.c: New Outliner "Blender File" option: the first entry couldn't be closed/re-opened.

Ton Roosendaal ton at blender.org
Sat Dec 22 18:32:57 CET 2012


Revision: 53277
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53277
Author:   ton
Date:     2012-12-22 17:32:56 +0000 (Sat, 22 Dec 2012)
Log Message:
-----------
New Outliner "Blender File" option: the first entry couldn't be closed/re-opened.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_outliner/outliner_tree.c

Modified: trunk/blender/source/blender/editors/space_outliner/outliner_tree.c
===================================================================
--- trunk/blender/source/blender/editors/space_outliner/outliner_tree.c	2012-12-22 16:49:50 UTC (rev 53276)
+++ trunk/blender/source/blender/editors/space_outliner/outliner_tree.c	2012-12-22 17:32:56 UTC (rev 53277)
@@ -1492,8 +1492,8 @@
 	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 @@
 		}
 		/* make hierarchy */
 		ten = soops->tree.first;
+		ten= ten->next; /* first one is main */
 		while (ten) {
 			TreeElement *nten = ten->next, *par;
 			tselem = TREESTORE(ten);




More information about the Bf-blender-cvs mailing list