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);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs