[Bf-blender-cvs] [2e2dde7448a] filebrowser_redesign: Add recursion level and display size options to filter popup
Julian Eisel
noreply at git.blender.org
Mon Jul 22 19:37:03 CEST 2019
Commit: 2e2dde7448a658e33ad4fcb8b410050da43add6c
Author: Julian Eisel
Date: Sun Jul 21 15:08:32 2019 +0200
Branches: filebrowser_redesign
https://developer.blender.org/rB2e2dde7448a658e33ad4fcb8b410050da43add6c
Add recursion level and display size options to filter popup
Those are the file-list specific options from the area 'View' menu.
===================================================================
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 494fd8b8c80..c1292476e15 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -45,24 +45,26 @@ class FILEBROWSER_PT_filter(Panel):
bl_label = "Filter"
bl_options = {'HIDDEN'}
+ @classmethod
+ def poll(cls, context):
+ # can be None when save/reload with a file selector open
+ return space.params is not None
+
def draw(self, context):
layout = self.layout
space = context.space_data
params = space.params
+ is_lib_browser = params.use_library_browsing
- # can be None when save/reload with a file selector open
- if params:
- is_lib_browser = params.use_library_browsing
-
- layout.label(text="Sort By:")
- layout.prop(params, "sort_method", expand=True, text="")
+ layout.label(text="Sort By:")
+ layout.prop(params, "sort_method", expand=True, text="")
- layout.separator()
+ layout.separator()
- layout.prop(params, "show_hidden")
+ layout.prop(params, "show_hidden")
- layout.separator()
+ layout.separator()
row = layout.row(align=True)
row.prop(params, "use_filter", text="", toggle=0)
@@ -118,6 +120,13 @@ class FILEBROWSER_PT_filter(Panel):
col.prop(params, "filter_search", text="", icon='VIEWZOOM')
+ layout.separator()
+
+ layout.label(text="Display Size:")
+ layout.prop(params, "display_size", text="")
+ layout.label(text="Recursion Level:")
+ layout.prop(params, "recursion_level", text="")
+
class FILEBROWSER_UL_dir(UIList):
def draw_item(self, _context, layout, _data, item, icon, _active_data, active_propname, _index):
More information about the Bf-blender-cvs
mailing list