[Bf-blender-cvs] [f4eacad48f5] master: Fix AssetBrowser UI errors
Philipp Oeser
noreply at git.blender.org
Tue Aug 31 10:45:20 CEST 2021
Commit: f4eacad48f594b9bffc7e857b211513d6f780f8e
Author: Philipp Oeser
Date: Mon Aug 30 18:26:03 2021 +0200
Branches: master
https://developer.blender.org/rBf4eacad48f594b9bffc7e857b211513d6f780f8e
Fix AssetBrowser UI errors
Steps to reproduce:
- enable Extended Asset Browser
- open a regular File Browser
gives:
"rna_uiItemR: property not found: FileSelectParams.asset_category"
Now do proper poll.
Differential Revision: https://developer.blender.org/D12350
===================================================================
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 aea2b76e07b..ca018216a5a 100644
--- a/release/scripts/startup/bl_ui/space_filebrowser.py
+++ b/release/scripts/startup/bl_ui/space_filebrowser.py
@@ -655,7 +655,10 @@ class ASSETBROWSER_PT_navigation_bar(asset_utils.AssetBrowserPanel, Panel):
@classmethod
def poll(cls, context):
- return context.preferences.experimental.use_extended_asset_browser
+ return (
+ asset_utils.AssetBrowserPanel.poll(context) and
+ context.preferences.experimental.use_extended_asset_browser
+ )
def draw(self, context):
layout = self.layout
More information about the Bf-blender-cvs
mailing list