diff options
author | Julian Eisel <julian@blender.org> | 2021-08-03 13:24:48 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2021-08-03 13:25:38 +0300 |
commit | 28b9dd7b1f0a8d4ae56eafca188796936a6e3723 (patch) | |
tree | ece2e9d92e7f0d968eba6665a0e67fe4a3617523 | |
parent | c0900a64ceeaa46a1dfd1fa19d5b57449fb7788a (diff) |
Cleanup: Remove redundant checks in File Browser UI script
Was already checking these preconditions in the poll method.
-rw-r--r-- | release/scripts/startup/bl_ui/space_filebrowser.py | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_filebrowser.py b/release/scripts/startup/bl_ui/space_filebrowser.py index 3189efeb939..9f70d26c71b 100644 --- a/release/scripts/startup/bl_ui/space_filebrowser.py +++ b/release/scripts/startup/bl_ui/space_filebrowser.py @@ -384,19 +384,17 @@ class FILEBROWSER_PT_advanced_filter(Panel): space = context.space_data params = space.params - if params and params.use_library_browsing: - layout.prop(params, "use_filter_blendid") - if params.use_filter_blendid: - layout.separator() - col = layout.column(align=True) + layout.prop(params, "use_filter_blendid") + if params.use_filter_blendid: + layout.separator() + col = layout.column(align=True) - if context.preferences.experimental.use_asset_browser: - col.prop(params, "use_filter_asset_only") + col.prop(params, "use_filter_asset_only") - filter_id = params.filter_id - for identifier in dir(filter_id): - if identifier.startswith("filter_"): - col.prop(filter_id, identifier, toggle=True) + filter_id = params.filter_id + for identifier in dir(filter_id): + if identifier.startswith("filter_"): + col.prop(filter_id, identifier, toggle=True) def is_option_region_visible(context, space): |