[Bf-blender-cvs] [adea6146f62] master: UI: Make File Browser bookmarks panels unparented again

William Reynish noreply at git.blender.org
Wed May 8 15:07:10 CEST 2019


Commit: adea6146f626543acffae8eeff90324f7046294d
Author: William Reynish
Date:   Wed May 8 15:07:07 2019 +0200
Branches: master
https://developer.blender.org/rBadea6146f626543acffae8eeff90324f7046294d

UI: Make File Browser bookmarks panels unparented again

Also open Recents again by default

===================================================================

M	release/scripts/startup/bl_ui/space_filebrowser.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py
index 9fffa253329..4f371b8851f 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -117,20 +117,9 @@ class FILEBROWSER_UL_dir(UIList):
 
 
 
-class FILEBROWSER_PT_bookmarks(Panel):
-    bl_space_type = 'FILE_BROWSER'
-    bl_region_type = 'TOOLS'
-    bl_category = "Bookmarks"
-    bl_label = "Bookmarks"
-
-    def draw(self, context):
-        pass
-
-
 class FILEBROWSER_PT_bookmarks_volumes(Panel):
     bl_space_type = 'FILE_BROWSER'
     bl_region_type = 'TOOLS'
-    bl_parent_id = "FILEBROWSER_PT_bookmarks"
     bl_options = {'DEFAULT_CLOSED'}
     bl_category = "Bookmarks"
     bl_label = "Volumes"
@@ -148,7 +137,6 @@ class FILEBROWSER_PT_bookmarks_volumes(Panel):
 class FILEBROWSER_PT_bookmarks_system(Panel):
     bl_space_type = 'FILE_BROWSER'
     bl_region_type = 'TOOLS'
-    bl_parent_id = "FILEBROWSER_PT_bookmarks"
     bl_category = "Bookmarks"
     bl_label = "System"
 
@@ -181,7 +169,6 @@ class FILEBROWSER_MT_bookmarks_context_menu(Menu):
 class FILEBROWSER_PT_bookmarks_favorites(Panel):
     bl_space_type = 'FILE_BROWSER'
     bl_region_type = 'TOOLS'
-    bl_parent_id = "FILEBROWSER_PT_bookmarks"
     bl_category = "Bookmarks"
     bl_label = "Favorites"
 
@@ -212,9 +199,7 @@ class FILEBROWSER_PT_bookmarks_favorites(Panel):
 class FILEBROWSER_PT_bookmarks_recents(Panel):
     bl_space_type = 'FILE_BROWSER'
     bl_region_type = 'TOOLS'
-    bl_parent_id = "FILEBROWSER_PT_bookmarks"
     bl_category = "Bookmarks"
-    bl_options = {'DEFAULT_CLOSED'}
     bl_label = "Recents"
 
     @classmethod
@@ -237,7 +222,6 @@ class FILEBROWSER_PT_bookmarks_recents(Panel):
 class FILEBROWSER_PT_advanced_filter(Panel):
     bl_space_type = 'FILE_BROWSER'
     bl_region_type = 'TOOLS'
-    bl_parent_id = "FILEBROWSER_PT_bookmarks"
     bl_category = "Filter"
     bl_label = "Advanced Filter"
 
@@ -278,7 +262,6 @@ class FILEBROWSER_MT_view(Menu):
 classes = (
     FILEBROWSER_HT_header,
     FILEBROWSER_UL_dir,
-    FILEBROWSER_PT_bookmarks,
     FILEBROWSER_PT_bookmarks_volumes,
     FILEBROWSER_PT_bookmarks_system,
     FILEBROWSER_MT_bookmarks_context_menu,



More information about the Bf-blender-cvs mailing list